init(shadowProjection:depthBias:cullMode:)
Creates a directional light shadow with a shadow projection, depth bias and cull mode.
Declaration
init(shadowProjection: DirectionalLightComponent.Shadow.ShadowProjectionType, depthBias: Float, cullMode: DirectionalLightComponent.Shadow.ShadowMapCullMode? = nil)Parameters
- shadowProjection:
The shadow projection used for shadow map rendering.
- depthBias:
The depth bias for the shadow.
- cullMode:
The mode used to cull faces when generating the shadow.