-
Notifications
You must be signed in to change notification settings - Fork 26
ShadowMap
Alessandro Febretti edited this page Jul 4, 2014
·
3 revisions
Last revision: ver. 5.1 - 5 November 2013
Implements shadow map support. Each shadow map can be attached to a Light to enable shadow mapping on that light.
| Method(s) | Description |
|---|---|
setTextureSize(int width, int height) |
Sets the size of the shadow map texture in pixels |
setSoft(bool soft), bool isSoft()
|
Gets or sets the soft shadow mode for this shadow. |
setSoftShadowParameters(float jitterScale, float softnessWidth) |
Sets the soft shadow parameters for this shadow. Only used by soft shadows. |
setDirty() |
Forces a shadow map refresh. Used for manual refresh maps. See Light.setShadowRefreshMode |
light = Light.create()
sm = ShadowMap()
light.setShadow(sm)