LightSpriteBaselightZ Field |
Depth position of this light source relative to the layer where the sprite resides.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax Remarks
Since scrolling game sprites generally don't have a depth coordinate, but depth is important for
lighting, this property is helpful in determining how light shines on the map. Common values
for this property fall approximately in the range of 0.1 to 10.0. Larger values position the
light farther from the map, which is useful when illuminating a large area, for example, to
provide ambient light. This value combined with the
SpriteBase base class'
x and
y values form a 3D coordinate, which work with the
aimX,
aimY and
aimZ to determine the light's location and
direction.
See Also