Provides a plane that displays shadows from a given lightsource and set of GLScene objects.
The shadowplane requires a lightsource and the object you wish to shadow. To shadow more than one object make the objects children of a
dummycube and make that the object to shadow.
Important
TGLShadowPlane properties include:
shadowlightsource:
TGLLightSource
The lightsource that is producing the shadows. If this isn't set then no shadows are visible
shadowobject:
TGLBaseSceneObject
The object you wish to shadow. Use a dummycube to shadow more than one object.
shadowcolor:
TGLColor
The color of the shadow when displayed on the shadowplane. Set the alpha value to less than 1 so that the texture on the shadowplane is blended with the shadow otherwise the shadow will be 100% shadow color. If its not black seems to override the color of the lightsource.
shadowoptions:
TShadowPlaneOptions
Rendering options such as stenciling which specifies if shadows are blending with the shadowplane texture.
Demo:
CVS/Demos/specialsFX/shadowplane∞
Unit:
GLShadowPlane∞
Descends from
TGLPlane.
|
|
Attachment
|
Size
|
Date Added
|
| | |