C# Класс TressFX.TressFXOITLight

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_lights List
blockerDistanceScale float
fallbackFilterWidth float
fiberSpacing float
lightFarSize float
lightNearSize float
sceneCaptureDistance float
selfShadowMapSize int
shadowBias float
shadowMapSize int

Открытые методы

Метод Описание
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

Описание методов

Awake() публичный Метод

Initializes the oit light.
public Awake ( ) : void
Результат void

ClearShadowMaps() публичный Метод

Clears all shadowmaps this light has.
public ClearShadowMaps ( ) : void
Результат void

GetLightInfo() публичный Метод

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
Результат void

GetShadowInfo() публичный Метод

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.
Результат void

GetShadowMatrix() публичный Метод

public GetShadowMatrix ( ) : Matrix4x4
Результат UnityEngine.Matrix4x4

IsVisible() публичный Метод

public IsVisible ( TressFXOITRenderer renderer ) : bool
renderer TressFXOITRenderer
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

RenderSelfShadows() публичный Метод

Renders the selfshadow map for this light and the specified renderer.
public RenderSelfShadows ( TressFXOITRenderer renderer ) : void
renderer TressFXOITRenderer
Результат void

RenderShadows() публичный Метод

Renders the scene shadow map for this light.
public RenderShadows ( ) : void
Результат void

SetSelfShadowParameters() публичный Метод

Sets the self shadowmapping parameters of this light to the specified evaluation material.
public SetSelfShadowParameters ( Material evalMaterial ) : void
evalMaterial UnityEngine.Material
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

_lights публичное статическое свойство

Collection of all lights. Not sorted! When a new light gets registered, lightListDirty is set to false.
public static List _lights
Результат List

blockerDistanceScale публичное свойство

public float blockerDistanceScale
Результат float

fallbackFilterWidth публичное свойство

public float fallbackFilterWidth
Результат float

fiberSpacing публичное свойство

public float fiberSpacing
Результат float

lightFarSize публичное свойство

public float lightFarSize
Результат float

lightNearSize публичное свойство

public float lightNearSize
Результат float

sceneCaptureDistance публичное свойство

public float sceneCaptureDistance
Результат float

selfShadowMapSize публичное свойство

public int selfShadowMapSize
Результат int

shadowBias публичное свойство

public float shadowBias
Результат float

shadowMapSize публичное свойство

public int shadowMapSize
Результат int