Version: 2020.3
언어: 한국어

ParticleSystemVertexStream

enumeration

매뉴얼로 전환

설명

All possible Particle System vertex shader inputs.

변수

PositionThe position of each particle vertex, in world space.
NormalThe vertex normal of each particle.
TangentThe tangent vector for each particle (for normal mapping).
ColorThe color of each particle.
UVThe first UV stream of each particle.
UV2The second UV stream of each particle.
UV3The third UV stream of each particle (only for meshes).
UV4The fourth UV stream of each particle (only for meshes).
AnimBlendThe amount to blend between animated texture frames, from 0 to 1.
AnimFrameThe current animation frame index of each particle.
CenterThe center position of the entire particle, in world space.
VertexIDThe vertex ID of each particle.
SizeXThe X axis size of each particle.
SizeXYThe X and Y axis sizes of each particle.
SizeXYZThe 3D size of each particle.
RotationThe Z axis rotation of each particle.
Rotation3DThe 3D rotation of each particle.
RotationSpeedThe Z axis rotational speed of each particle.
RotationSpeed3DThe 3D rotational speed of each particle.
VelocityThe velocity of each particle, in world space.
SpeedThe speed of each particle, calculated by taking the magnitude of the velocity.
AgePercentThe normalized age of each particle, from 0 to 1.
InvStartLifetimeThe reciprocal of the starting lifetime, in seconds (1.0f / startLifetime).
StableRandomXA random number for each particle, which remains constant during their lifetime.
StableRandomXYTwo random numbers for each particle, which remain constant during their lifetime.
StableRandomXYZThree random numbers for each particle, which remain constant during their lifetime.
StableRandomXYZWFour random numbers for each particle, which remain constant during their lifetime.
VaryingRandomXA random number for each particle, which changes during their lifetime.
VaryingRandomXYTwo random numbers for each particle, which change during their lifetime.
VaryingRandomXYZThree random numbers for each particle, which change during their lifetime.
VaryingRandomXYZWFour random numbers for each particle, which change during their lifetime.
Custom1XOne custom value for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYTwo custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYZThree custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYZWFour custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XOne custom value for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYTwo custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYZThree custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYZWFour custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
NoiseSumXThe accumulated X axis noise, over the lifetime of the particle.
NoiseSumXYThe accumulated X and Y axis noise, over the lifetime of the particle.
NoiseSumXYZThe accumulated 3D noise, over the lifetime of the particle.
NoiseImpulseXThe X axis noise on the current frame.
NoiseImpulseXYThe X and Y axis noise on the current frame.
NoiseImpulseXYZThe 3D noise on the current frame.
MeshIndexThe index of the mesh used by the current particle.