Class FluidRenderingObject Abstract
Hierarchy
- FluidRenderingObject
Index
Constructors
constructor
Instantiates a fluid rendering object
Parameters
scene: Scene
The scene the object is part of
Returns FluidRenderingObject
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>
Abstract num Particles
Gets the number of particles (vertices) of 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
Abstract 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 the base object used for fluid rendering. It is based on a list of vertices (particles)