Class FluidRenderingObjectParticleSystem
Hierarchy
- FluidRenderingObject
- FluidRenderingObjectParticleSystem
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new instance of the class
Parameters
scene: Scene
The scene the particle system is part of
ps: IParticleSystem
The particle system
Returns FluidRenderingObjectParticleSystem
Properties
on Particle Size ChangedSearch playground for onParticleSizeChanged
Observable triggered when the size of the particle is changed
particle Thickness AlphaSearch playground for particleThicknessAlpha
Defines the alpha value of a particle
prioritySearch playground for priority
Defines the priority of the object. Objects will be rendered in ascending order of priority
Accessors
index Buffer
Gets the index buffer (or null if the object is using instancing)
Returns Nullable<DataBuffer>
num Particles
Gets the number of particles in this particle system
Returns number
The number of particles
particle Size
Gets or sets the size of the particle
Returns number
Gets or sets the size of the particle
Parameters
size: number
Returns void
particle System
Gets the particle system
Returns IParticleSystem
use Instancing
Indicates if the object uses instancing or not
Returns boolean
use True Rendering For Diffuse Texture
Gets or sets a boolean indicating that the diffuse texture should be generated based on the regular rendering of the particle system (default: true). Sometimes, generating the diffuse texture this way may be sub-optimal. In that case, you can disable this property, in which case the particle system will be rendered using a ALPHA_COMBINE mode instead of the one used by the particle system.
Returns boolean
Gets or sets a boolean indicating that the diffuse texture should be generated based on the regular rendering of the particle system (default: true). Sometimes, generating the diffuse texture this way may be sub-optimal. In that case, you can disable this property, in which case the particle system will be rendered using a ALPHA_COMBINE mode instead of the one used by the particle system.
Parameters
use: boolean
Returns void
use Velocity
Indicates if velocity of particles should be used when rendering the object. The vertex buffer set must contain a "velocity" buffer for this to work!
Returns boolean
Indicates if velocity of particles should be used when rendering the object. The vertex buffer set must contain a "velocity" buffer for this to work!
Parameters
use: boolean
Returns void
vertex Buffers
Gets the vertex buffers
Returns {}
[key: string]: VertexBuffer
Methods
disposeSearch playground for dispose
Releases the ressources used by the class
Returns void
get Class NameSearch playground for getClassName
Gets the name of the class
Returns string
is ReadySearch playground for isReady
Indicates if the object is ready to be rendered
Returns boolean
True if everything is ready for the object to be rendered, otherwise false
render Depth TextureSearch playground for renderDepthTexture
Render the depth texture for this object
Returns void
render Diffuse TextureSearch playground for renderDiffuseTexture
Render the diffuse texture for this object
Returns void
render Thickness TextureSearch playground for renderThicknessTexture
Render the thickness texture for this object
Returns void
Defines a rendering object based on a particle system