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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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.

This value must be equal or bigger than 128 and smaller or equal to the max image dimension supported by the current graphics card (see GpuDevice.PhysicalDeviceDetails.MaxImageDimension).

Default value is 1024.

See Also