Class FluidRenderingObjectCustomParticles
Hierarchy
- FluidRenderingObject
- FluidRenderingObjectCustomParticles
Index
Constructors
constructor
Creates a new instance of the class
Parameters
scene: Scene
The scene the particles should be rendered into
buffers: {}
The list of buffers (must contain at least one "position" buffer!). Note that you don't have to pass all (or any!) buffers at once in the constructor, you can use the addBuffers method to add more later.
[key: string]: FloatArray
numParticles: number
Number of vertices to take into account from the buffers
Returns FluidRenderingObjectCustomParticles
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 object
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
use Instancing
Indicates if the object uses instancing or not
Returns boolean
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
add BuffersSearch playground for addBuffers
Add some new buffers
Parameters
buffers: {}
List of buffers
[key: string]: FloatArray
Returns void
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
set Num ParticlesSearch playground for setNumParticles
Sets the number of particles in this object
Parameters
num: number
The number of particles to take into account
Returns void
Defines a rendering object based on a list of custom buffers The list must contain at least a "position" buffer!