C# Class AreaLight, TheUnseen

Inheritance: MonoBehaviour
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
Color Color
ConstantAttenuation float
FalloffCurve UnityEngine.AnimationCurve
FalloffType AreaLightFalloffType
Intensity float
LinearAttenuation float
MaxDist float
MultSpec float
QuadraticAttenuation float
RenderDiffuse bool
RenderSpecular bool

Protected Properties

Property Type Description
m_isDiffuse bool
m_isSpec bool
m_lightMaterial Material
m_normal Vector3
m_right Vector3
m_type AreaLightTypes
m_up Vector3

Public Methods

Method Description
CreateFalloffLookup ( ) : void
Delete ( ) : void
EditorUpdateCallback ( ) : void
GetMaterial ( ) : Material
OnDisable ( ) : void
OnDrawGizmos ( ) : void
OnEnable ( ) : void
PickMaterial ( ) : void
SetAlbedoBuffer ( RenderTexture albedoBuffer ) : void
SetMatrixNormalInverse ( Matrix4x4 matNormalInverse ) : void
SetMatrixViewInverse ( Matrix4x4 matViewInverse ) : void
SetNormalBuffer ( RenderTexture normalBuffer ) : void
SetTransparencyBuffer ( RenderTexture transparencyBuffer ) : void
Update ( ) : void
UpdateMaterial ( ) : void

Protected Methods

Method Description
Awake ( ) : void
Start ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CreateFalloffLookup() public method

public CreateFalloffLookup ( ) : void
return void

Delete() public method

public Delete ( ) : void
return void

EditorUpdateCallback() public method

public EditorUpdateCallback ( ) : void
return void

GetMaterial() public method

public GetMaterial ( ) : Material
return Material

OnDisable() public method

public OnDisable ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PickMaterial() public method

public PickMaterial ( ) : void
return void

SetAlbedoBuffer() public method

public SetAlbedoBuffer ( RenderTexture albedoBuffer ) : void
albedoBuffer RenderTexture
return void

SetMatrixNormalInverse() public method

public SetMatrixNormalInverse ( Matrix4x4 matNormalInverse ) : void
matNormalInverse Matrix4x4
return void

SetMatrixViewInverse() public method

public SetMatrixViewInverse ( Matrix4x4 matViewInverse ) : void
matViewInverse Matrix4x4
return void

SetNormalBuffer() public method

public SetNormalBuffer ( RenderTexture normalBuffer ) : void
normalBuffer RenderTexture
return void

SetTransparencyBuffer() public method

public SetTransparencyBuffer ( RenderTexture transparencyBuffer ) : void
transparencyBuffer RenderTexture
return void

Start() protected method

protected Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateMaterial() public method

public UpdateMaterial ( ) : void
return void

Property Details

Color public property

public Color Color
return Color

ConstantAttenuation public property

public float ConstantAttenuation
return float

FalloffCurve public property

public AnimationCurve,UnityEngine FalloffCurve
return UnityEngine.AnimationCurve

FalloffType public property

public AreaLightFalloffType FalloffType
return AreaLightFalloffType

Intensity public property

public float Intensity
return float

LinearAttenuation public property

public float LinearAttenuation
return float

MaxDist public property

public float MaxDist
return float

MultSpec public property

public float MultSpec
return float

QuadraticAttenuation public property

public float QuadraticAttenuation
return float

RenderDiffuse public property

public bool RenderDiffuse
return bool

RenderSpecular public property

public bool RenderSpecular
return bool

m_isDiffuse protected property

protected bool m_isDiffuse
return bool

m_isSpec protected property

protected bool m_isSpec
return bool

m_lightMaterial protected property

protected Material m_lightMaterial
return Material

m_normal protected property

protected Vector3 m_normal
return Vector3

m_right protected property

protected Vector3 m_right
return Vector3

m_type protected property

protected AreaLightTypes m_type
return AreaLightTypes

m_up protected property

protected Vector3 m_up
return Vector3