new ParticleBase(room, systemNameopt)
- Description:
Create a ParticleBase instance.
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
string | The name of the particle system. |
room |
Object | The room object where the particles will be added. |
geometry |
BufferGeometry | The geometry of the particle system. |
material |
Material | The material of the particle system. |
points |
Points | The points object of the particle system. |
count |
number | The number of particles. |
pscale |
Vector2 | The scale of the particles. |
position |
Vector3 | The position of the particle system. |
atlasPath |
string | The path to the atlas texture file. |
atlasAlphaPath |
string | The path to the atlas alpha texture file. |
hasAlphaMap |
boolean | Flag for whether the atlas texture has an alpha map. |
shaderSettings |
Object | Shader settings for the particle system. |
knownKeys |
Array.<string> | Known keys for shader settings. |
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
room |
Object |
null
|
The room object where the particle system will be added. |
|
systemName |
string |
<optional> |
'particles'
|
The name of the particle system. |