C# Класс TressFXLib.HairStrandVertex

This class represents a single vertex inside a hair strand.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
distanceToRoot float
globalTransform TressFXLib.HairStrandVertexTransform
isMovable bool
localTransform TressFXLib.HairStrandVertexTransform
position System.Vector3
referenceVector System.Vector4
restLength float
tangent System.Vector3
texcoord System.Vector4
thicknessCoefficient float

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

Метод Описание
GetTressFXPosition ( ) : System.Vector4

Creates a 4-component tressfx position vector. Tressfx uses the first 3 components for the actual world position (XYZ) and the fourth component as "movable flag". If the movable flag is 0, the hair is immovable. If it is > 0 it is movable.

HairStrandVertex ( System.Vector3 position, System.Vector3 tangent, System.Vector4 texcoord ) : System

"Easy-init" constructor.

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

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

Creates a 4-component tressfx position vector. Tressfx uses the first 3 components for the actual world position (XYZ) and the fourth component as "movable flag". If the movable flag is 0, the hair is immovable. If it is > 0 it is movable.
public GetTressFXPosition ( ) : System.Vector4
Результат System.Vector4

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

"Easy-init" constructor.
public HairStrandVertex ( System.Vector3 position, System.Vector3 tangent, System.Vector4 texcoord ) : System
position System.Vector3
tangent System.Vector3
texcoord System.Vector4
Результат System

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

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

The distance from this vertex to the root of the hair. This is generated during simulation data preparation. This value is normalized between 0 and 1
public float distanceToRoot
Результат float

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

The global transformation of the current vertex.
public HairStrandVertexTransform,TressFXLib globalTransform
Результат TressFXLib.HairStrandVertexTransform

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

If this is set to false, the hair strand vertex will become immovable.
public bool isMovable
Результат bool

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

The local transformation of the current vertex.
public HairStrandVertexTransform,TressFXLib localTransform
Результат TressFXLib.HairStrandVertexTransform

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

The position of this vertex.
public Vector3,System position
Результат System.Vector3

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

The reference vector.
public Vector4,System referenceVector
Результат System.Vector4

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

The rest length of this vertex.
public float restLength
Результат float

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

The tangent of this vertex.
public Vector3,System tangent
Результат System.Vector3

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

The texcoord of this strand. xy = 1. texcoord, zw = 2. texcoord (normally unused)
public Vector4,System texcoord
Результат System.Vector4

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

The thickness coefficient of this vertex.
public float thicknessCoefficient
Результат float