Click or drag to resize
Ab4d.SharpEngine logo

SoftShadowRenderingProviderShadowMapSize Property

Gets or sets and integer value that represents the size of a shadow depth map texture. Default value is 1024 and means that by default a 1024 x 1024 texture is used.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public int ShadowMapSize { get; set; }

Property Value

Int32
Remarks

ShadowMapSize gets or sets and integer value that represents the size of a shadow depth map texture.

The value defines the width and height of the texture. For example value 1024 means that a 1024 x 1024 texture is used.

The shadow depth map texture is used to store depth information - distance of a pixel from the light.

Bigger texture will produce more detailed shadows but will be slower to render. Also, to bigger texture will require bigger blur amount to achieve nice soft edges.

Default value is 1024.

See Also