C# Class TressFX.TressFXOITLight

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: kennux/TressFXUnity Class Usage Examples

Public Properties

Property Type Description
_lights List
blockerDistanceScale float
fallbackFilterWidth float
fiberSpacing float
lightFarSize float
lightNearSize float
sceneCaptureDistance float
selfShadowMapSize int
shadowBias float
shadowMapSize int

Public Methods

Method 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 method

Initializes the oit light.
public Awake ( ) : void
return void

ClearShadowMaps() public method

Clears all shadowmaps this light has.
public ClearShadowMaps ( ) : void
return void

GetLightInfo() public method

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
return void

GetShadowInfo() public method

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.
return void

GetShadowMatrix() public method

public GetShadowMatrix ( ) : Matrix4x4
return UnityEngine.Matrix4x4

IsVisible() public method

public IsVisible ( TressFXOITRenderer renderer ) : bool
renderer TressFXOITRenderer
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

RenderSelfShadows() public method

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

RenderShadows() public method

Renders the scene shadow map for this light.
public RenderShadows ( ) : void
return void

SetSelfShadowParameters() public method

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

Update() public method

public Update ( ) : void
return 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
return List

blockerDistanceScale public_oe property

public float blockerDistanceScale
return float

fallbackFilterWidth public_oe property

public float fallbackFilterWidth
return float

fiberSpacing public_oe property

public float fiberSpacing
return float

lightFarSize public_oe property

public float lightFarSize
return float

lightNearSize public_oe property

public float lightNearSize
return float

sceneCaptureDistance public_oe property

public float sceneCaptureDistance
return float

selfShadowMapSize public_oe property

public int selfShadowMapSize
return int

shadowBias public_oe property

public float shadowBias
return float

shadowMapSize public_oe property

public int shadowMapSize
return int