gamnit :: ParallelLight :: camera=
gamnit :: ParallelLight :: defaultinit
gamnit :: ParallelLight :: depth=
Viewport depth, centered onapp.world_camera
gamnit :: ParallelLight :: height=
Depth texture height, in world coordinatesgamnit :: ParallelLight :: pitch=
Angle to the light source, around the X axisgamnit :: ParallelLight :: width=
Depth texture width, in world coordinatesgamnit $ ParallelLight :: SELF
Type of this instance, automatically specialized in every classgamnit $ ParallelLight :: camera
View from the camera, used for shadow mapping, implemented by sub-classesgamnit :: LightCastingShadows :: camera
View from the camera, used for shadow mapping, implemented by sub-classesgamnit :: ParallelLight :: camera=
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gamnit :: Light :: defaultinit
gamnit :: ParallelLight :: defaultinit
core :: Object :: defaultinit
gamnit :: ParallelLight :: depth=
Viewport depth, centered onapp.world_camera
gamnit :: ParallelLight :: height=
Depth texture height, in world coordinatescore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).gamnit :: ParallelLight :: pitch=
Angle to the light source, around the X axisgamnit :: ParallelLight :: width=
Depth texture width, in world coordinates
# 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