C# 클래스 TressFXLib.HairStrandVertex

This class represents a single vertex inside a hair strand.
파일 보기 프로젝트 열기: kennux/TressFXUnity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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