gamnit :: ParallelLight :: defaultinit
# Sun-like light projecting parallel rays
class ParallelLight
super LightCastingShadows
# Angle to the light source, around the X axis
var pitch = 0.0 is writable
# Angle to the light source, around the Y axis
var yaw = 0.0 is writable
# Depth texture width, in world coordinates
var width = 100.0 is writable
# Depth texture height, in world coordinates
var height = 100.0 is writable
# Viewport depth, centered on `app.world_camera`
var depth = 500.0 is writable
redef var camera = new ParallelLightCamera(app.display.as(not null), self) is lazy
end
lib/gamnit/depth/more_lights.nit:25,1--45,3