Property | Type | Description | |
---|---|---|---|
collider2 | |||
collider3 | |||
collision | bool | ||
doLengthConstraintsWindAndCollision | bool | ||
doLocalShapeConstraints | bool | ||
followHairs | bool | ||
frameLimit | float | ||
gravityMagnitude | float | ||
isWarping | bool | ||
lengthConstraintIterations | int | ||
localShapeConstraintIterations | int | ||
partConfigs | TressFX.HairPartConfig[] | ||
simulationShader | |||
tipSeperationFactor | float | ||
windDirection | Vector3 | ||
windMagnitude | float |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
LateUpdate ( ) : void |
Method | Description | |
---|---|---|
SetBuffers ( int kernelId ) : void |
Sets the buffers to the given kernel id. Sets all simulation related buffers: g_HairVertexPositions g_HairVertexPositionsPrev g_HairVertexTangents g_InitialHairPositions g_GlobalRotations g_LocalRotations g_HairRestLengthSRV g_HairStrandType g_HairRefVecsInLocalFrame g_FollowHairRootOffset
|
|
SetConstants ( ) : void |
Sets the constants for the compute shader simulation.
|
Method | Description | |
---|---|---|
MatrixToFloatArray ( |
Convertes a Matrix4x4 to a float array.
|
|
QuaternionToFloatArray ( |
Quaternion to float array for passing to compute shader
|
|
SimulateWind ( ) : void |
protected SetBuffers ( int kernelId ) : void | ||
kernelId | int | Kernel identifier. |
return | void |
public SphereCollider,UnityEngine collider2 | ||
return |
public SphereCollider,UnityEngine collider3 | ||
return |
public bool doLengthConstraintsWindAndCollision | ||
return | bool |
public int localShapeConstraintIterations | ||
return | int |
public HairPartConfig[],TressFX partConfigs | ||
return | TressFX.HairPartConfig[] |
public ComputeShader,UnityEngine simulationShader | ||
return |