ShadowCascadeParameters

Description

sealed class Tinman.Engine.Rendering.Effects.Shared.ShadowCascadeParameters

Derived from

RenderEffectParameters abstract

Shared render effect parameters for a single shadow mapping cascade.

Public / Constants

Changed​Matrix


public constant ChangedMatrix → (1:int32)

Changed flag for Matrix.

Changed​Texture


public constant ChangedTexture → (1 << 1:int32)

Changed flag for Texture.

Public / Constructors

Shadow​Cascade​Parameters


public constructor ShadowCascadeParameters → ()

Creates a new instance of ShadowCascadeParameters.

Public / Attributes

Matrix


public attribute Matrix → (get,set)

value : Mat4F

The transformation matrix.

Transformation from world-space to shadow-space:

[+1, 0, 0] := right viewport edge
[-1, 0, 0] := left viewport edge
[0, +1, 0] := top viewport edge
[0, -1, 0] := bottom viewport edge
[0, 0, +1] := far plane
[0, 0, 0]  := near plane

Defaults to Mat4F.Identity.

Texture


public attribute Texture → (get,set)

value : ITexture2D

The texture resource.

The shadow map texture of this cascade.

Defaults to null.