C# Class TressFX.TressFXOITLight

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: kennux/TressFXUnity Class Usage Examples

Méthodes publiques

Свойство Type Description
_lights List
blockerDistanceScale float
fallbackFilterWidth float
fiberSpacing float
lightFarSize float
lightNearSize float
sceneCaptureDistance float
selfShadowMapSize int
shadowBias float
shadowMapSize int

Méthodes publiques

Méthode Description
Awake ( ) : void

Initializes the oit light.

ClearShadowMaps ( ) : void

Clears all shadowmaps this light has.

GetLightInfo ( Vector4 &position, Vector4 &data, Vector4 &lightColor ) : void

Returns the light info data for the shader (for this light).

GetShadowInfo ( Matrix4x4 &data, Matrix4x4 &shadowMatrix ) : void

Gets all shadow mapping information the shader requires for a light.

GetShadowMatrix ( ) : Matrix4x4
IsVisible ( TressFXOITRenderer renderer ) : bool
OnDestroy ( ) : void
RenderSelfShadows ( TressFXOITRenderer renderer ) : void

Renders the selfshadow map for this light and the specified renderer.

RenderShadows ( ) : void

Renders the scene shadow map for this light.

SetSelfShadowParameters ( Material evalMaterial ) : void

Sets the self shadowmapping parameters of this light to the specified evaluation material.

Update ( ) : void

Method Details

Awake() public méthode

Initializes the oit light.
public Awake ( ) : void
Résultat void

ClearShadowMaps() public méthode

Clears all shadowmaps this light has.
public ClearShadowMaps ( ) : void
Résultat void

GetLightInfo() public méthode

Returns the light info data for the shader (for this light).
public GetLightInfo ( Vector4 &position, Vector4 &data, Vector4 &lightColor ) : void
position UnityEngine.Vector4 The position passed in the shader, for format specification look into TressFX_Lighting.cginc
data UnityEngine.Vector4 The data passed in the shader, for format specification look into TressFX_Lighting.cginc
lightColor UnityEngine.Vector4
Résultat void

GetShadowInfo() public méthode

Gets all shadow mapping information the shader requires for a light.
public GetShadowInfo ( Matrix4x4 &data, Matrix4x4 &shadowMatrix ) : void
data UnityEngine.Matrix4x4 The data matrix which should get passed into the evaluation shader.
shadowMatrix UnityEngine.Matrix4x4 The shadow matrix which should get passed into the evaluation shader.
Résultat void

GetShadowMatrix() public méthode

public GetShadowMatrix ( ) : Matrix4x4
Résultat UnityEngine.Matrix4x4

IsVisible() public méthode

public IsVisible ( TressFXOITRenderer renderer ) : bool
renderer TressFXOITRenderer
Résultat bool

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

RenderSelfShadows() public méthode

Renders the selfshadow map for this light and the specified renderer.
public RenderSelfShadows ( TressFXOITRenderer renderer ) : void
renderer TressFXOITRenderer
Résultat void

RenderShadows() public méthode

Renders the scene shadow map for this light.
public RenderShadows ( ) : void
Résultat void

SetSelfShadowParameters() public méthode

Sets the self shadowmapping parameters of this light to the specified evaluation material.
public SetSelfShadowParameters ( Material evalMaterial ) : void
evalMaterial UnityEngine.Material
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

_lights public_oe static_oe property

Collection of all lights. Not sorted! When a new light gets registered, lightListDirty is set to false.
public static List _lights
Résultat List

blockerDistanceScale public_oe property

public float blockerDistanceScale
Résultat float

fallbackFilterWidth public_oe property

public float fallbackFilterWidth
Résultat float

fiberSpacing public_oe property

public float fiberSpacing
Résultat float

lightFarSize public_oe property

public float lightFarSize
Résultat float

lightNearSize public_oe property

public float lightNearSize
Résultat float

sceneCaptureDistance public_oe property

public float sceneCaptureDistance
Résultat float

selfShadowMapSize public_oe property

public int selfShadowMapSize
Résultat int

shadowBias public_oe property

public float shadowBias
Résultat float

shadowMapSize public_oe property

public int shadowMapSize
Résultat int