IParticleParameterT Interface |
Namespace: DigitalRune.Particles
The IParticleParameterT type exposes the following members.
Name | Description | |
---|---|---|
GetValueT |
Gets the value of a uniform or a varying particle parameter.
(Defined by ParticleHelper.) | |
SetValueT |
Sets the value of a uniform or varying particle parameter.
(Defined by ParticleHelper.) |
Name | Description | |
---|---|---|
DefaultValue |
Gets or sets the default value.
| |
IsUniform |
Gets a value indicating whether this particle parameter is a uniform parameter or a varying parameter.
(Inherited from IParticleParameter.) | |
Name |
Gets the name.
(Inherited from INamedObject.) | |
Values |
Gets the particle parameter array that contains one value per particle.
|
Particles have several parameters, like "Color", "Position", "Mass", etc. All particle parameters must implement IParticleParameter. The name of a parameter (see property Name) must be unique within a particle system. See ParticleParameterNames for standard parameter names.
Uniform vs. Varying Particle Parameters: A particle parameter has a default value (see DefaultValue) and an optional array of values (see Values). If Values is , the DefaultValue applies to all particles. This kind of particle parameter is called a "uniform" parameter. If Values is not , each particle has its own individual value. This kind of particle parameter is called a "varying" parameter.
Particle effectors or renderers should not store a direct reference to the Values array because the particle system can replace the array. Instead, effectors or renderers should only store references to the IParticleParameterT and use the property Values to retrieve the array when needed.