Click or drag to resize
AB4D logo

SuperShadowShaderEffectSetShadowMappingParameters(ShadowLightData, Single, Single, RenderingContext) Method

SetShadowMappingParameters sets parameters needed for shadow mapping. This method must be called after the ApplyPerFrameSettings(ICamera, IListILight, RenderingContext) method and enabled shadow rendering until the next call to ApplyPerFrameSettings(ICamera, IListILight, RenderingContext) method.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public void SetShadowMappingParameters(
	ShadowLightData[] shadowLightsData,
	float shadowThreshold,
	float shadowDepthBias,
	RenderingContext renderingContext
)

Parameters

shadowLightsData  ShadowLightData
array of ShadowLightData - one element for each light
shadowThreshold  Single
float value that helps prevent light bleeding
shadowDepthBias  Single
float value that offsets the light distance and can prevent shadow artifacts in the corners
renderingContext  RenderingContext
RenderingContext
See Also