C# Class TressFX.ATressFXRender

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: kennux/TressFXUnity

Public Properties

Property Type Description
g_LineIndicesBuffer UnityEngine.ComputeBuffer
shadowShader UnityEngine.Shader

Protected Properties

Property Type Description
_master TressFX
g_TriangleIndicesBuffer UnityEngine.ComputeBuffer
lineMeshes UnityEngine.Mesh[]
shadowMaterial UnityEngine.Material
triangleMeshes UnityEngine.Mesh[]

Private Properties

Property Type Description

Public Methods

Method Description
Awake ( ) : void
OnDestroy ( ) : void

Raises the destroy event. Releases all resources not needed any more.

Update ( ) : void

Protected Methods

Method Description
GenerateLineMeshes ( ) : UnityEngine.Mesh[]

Generates the line meshes. Meshes are built of indices. Every vertices x-position will contain a vertex list index.

GenerateTriangleMeshes ( ) : UnityEngine.Mesh[]

Generates the triangle meshes. Meshes are built of indices. Every vertices x-position will contain a triangleindex buffer index.

MatrixToFloatArray ( Matrix4x4 matrix ) : float[]

Convertes a Matrix4x4 to a float array.

RenderShadows ( ) : void

Submits draw calls to unitys rendering system to render hair shadows.

SetSimulationTransformCorrection ( Material mat ) : void

Sets the simulation upscaling correction paramters to the given material.

Method Details

Awake() public method

public Awake ( ) : void
return void

GenerateLineMeshes() protected method

Generates the line meshes. Meshes are built of indices. Every vertices x-position will contain a vertex list index.
protected GenerateLineMeshes ( ) : UnityEngine.Mesh[]
return UnityEngine.Mesh[]

GenerateTriangleMeshes() protected method

Generates the triangle meshes. Meshes are built of indices. Every vertices x-position will contain a triangleindex buffer index.
protected GenerateTriangleMeshes ( ) : UnityEngine.Mesh[]
return UnityEngine.Mesh[]

MatrixToFloatArray() protected static method

Convertes a Matrix4x4 to a float array.
protected static MatrixToFloatArray ( Matrix4x4 matrix ) : float[]
matrix UnityEngine.Matrix4x4 Matrix.
return float[]

OnDestroy() public method

Raises the destroy event. Releases all resources not needed any more.
public OnDestroy ( ) : void
return void

RenderShadows() protected method

Submits draw calls to unitys rendering system to render hair shadows.
protected RenderShadows ( ) : void
return void

SetSimulationTransformCorrection() protected method

Sets the simulation upscaling correction paramters to the given material.
protected SetSimulationTransformCorrection ( Material mat ) : void
mat UnityEngine.Material
return void

Update() public method

public Update ( ) : void
return void

Property Details

_master protected_oe property

The TressFX master class.
protected TressFX,TressFX _master
return TressFX

g_LineIndicesBuffer public_oe property

The line indices buffer.
public ComputeBuffer,UnityEngine g_LineIndicesBuffer
return UnityEngine.ComputeBuffer

g_TriangleIndicesBuffer protected_oe property

The triangle indices buffer.
protected ComputeBuffer,UnityEngine g_TriangleIndicesBuffer
return UnityEngine.ComputeBuffer

lineMeshes protected_oe property

The line meshes.
protected Mesh[],UnityEngine lineMeshes
return UnityEngine.Mesh[]

shadowMaterial protected_oe property

The shadow material.
protected Material,UnityEngine shadowMaterial
return UnityEngine.Material

shadowShader public_oe property

The shadow shader.
public Shader,UnityEngine shadowShader
return UnityEngine.Shader

triangleMeshes protected_oe property

The triangle meshes. Meshes are built of indices. Every vertices x-position will contain a triangleindex buffer index.
protected Mesh[],UnityEngine triangleMeshes
return UnityEngine.Mesh[]