Skip to content
Alessandro Febretti edited this page Nov 5, 2013 · 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.

Methods

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.

Examples

Shadow map creation

light = Light.create()
sm = ShadowMap()
light.setShadow(sm)
Clone this wiki locally