Snow Particles Renderer
- Last UpdatedJan 24, 2023
- 1 minute read
The Snow Particles Renderer simulates and renders snow flakes.
Textures for Snow
The Snow renderer blends the texture with the background scene using an Add operation. This requires only one texture channel (Red).
Mipmapping
Mipmapping is enabled when the texture already contains a mipmap chain. For example, a DDS with mipmaps.
|
MipMaps (also MIP maps) are pre-calculated, optimized sequences of images, each of which is a progressively lower resolution representation of the same image. They are designed to increase rendering speed and reduce aliasing artifacts. |
Loading the node
This node can be loaded by the standard Scene loader.
<ParticlesRenderer name="MyName" type="Snow" version="1">
<enabled value="true"/>
<... other params here ...>
</ParticlesRenderer>
Code example
This is a code example for rendering snow with realtime HeightMap.
<ParticlesRenderer name="test_snow" type="Snow" version="1">
<enabled value="true"/>
<followRenderCamera value="true"/>
<emitterPosition value="0 0 0"/>
<maxParticles value="42000"/>
<numParticles value="42000"/>
<gravity value="0 -9.8 0"/>
<wind value="3 0 1"/>
<randomForceRange value="2 3 4"/>
<forcesMultiplier value="0.73"/>
<particleWidth value="0.0316"/>
<particleYAspect value="1.55"/>
<spawnRadius value="100"/>
<spawnY value="5"/>
<spawnYRandomRange value="2"/>
<frameZeroAutoPopulate value="true"/>
<frameZeroYRange value="10"/>
<texture name="snow.dds"/>
<opacity value="0.55"/>
<heightMap type="Realtime" name="SnowHM"/>
</ParticlesRenderer>