Click or drag to resize
Ab4d.SharpEngine logo

SceneCreateSoftShadowRenderingProvider Method

CreateSoftShadowRenderingProvider method creates a SoftShadowRenderingProvider that can be used to render soft shadows. Note that currently only one eSoftShadowRenderingProvider with one DirectionalLight or SpotLight shadow light is supported. The method returns a SoftShadowRenderingProvider that can be used to adjust the shadow settings. To remove the shadow light, call the RemoveShadowRenderingProvider(Boolean) or Dispose method on the returned SoftShadowRenderingProvider.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public SoftShadowRenderingProvider CreateSoftShadowRenderingProvider(
	ILight shadowLight
)

Parameters

shadowLight  ILight
DirectionalLight or SpotLight that will cast the shadow

Return Value

SoftShadowRenderingProvider
SoftShadowRenderingProvider that can be used to adjust the shadow settings
Exceptions
ExceptionCondition
InvalidOperationExceptionthrow when another SoftShadowRenderingProvider already exists
See Also