C# Class TressFX.ATressFXRender

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

Méthodes publiques

Свойство Type Description
g_LineIndicesBuffer UnityEngine.ComputeBuffer
shadowShader UnityEngine.Shader

Protected Properties

Свойство Type Description
_master TressFX
g_TriangleIndicesBuffer UnityEngine.ComputeBuffer
lineMeshes UnityEngine.Mesh[]
shadowMaterial UnityEngine.Material
triangleMeshes UnityEngine.Mesh[]

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Awake ( ) : void
OnDestroy ( ) : void

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

Update ( ) : void

Méthodes protégées

Méthode 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 méthode

public Awake ( ) : void
Résultat void

GenerateLineMeshes() protected méthode

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

GenerateTriangleMeshes() protected méthode

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

MatrixToFloatArray() protected static méthode

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

OnDestroy() public méthode

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

RenderShadows() protected méthode

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

SetSimulationTransformCorrection() protected méthode

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

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

_master protected_oe property

The TressFX master class.
protected TressFX,TressFX _master
Résultat TressFX

g_LineIndicesBuffer public_oe property

The line indices buffer.
public ComputeBuffer,UnityEngine g_LineIndicesBuffer
Résultat UnityEngine.ComputeBuffer

g_TriangleIndicesBuffer protected_oe property

The triangle indices buffer.
protected ComputeBuffer,UnityEngine g_TriangleIndicesBuffer
Résultat UnityEngine.ComputeBuffer

lineMeshes protected_oe property

The line meshes.
protected Mesh[],UnityEngine lineMeshes
Résultat UnityEngine.Mesh[]

shadowMaterial protected_oe property

The shadow material.
protected Material,UnityEngine shadowMaterial
Résultat UnityEngine.Material

shadowShader public_oe property

The shadow shader.
public Shader,UnityEngine shadowShader
Résultat 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
Résultat UnityEngine.Mesh[]