Decal
Overview
Decal renderers display the particles as decals on the opaque geometry of the scene.
A decal is a box that projects a texture on the geometry inside of it.
In PopcornFX, the texture is projected from the top face of the box.
By default, the decal renderer is invisible and you need to enable the "diffuse" or the "emissive" feature to actually see it. There are three different controls over the decal rendering:
-
Fade Top: fade the decal depending on the distance to the bottom of the box: the closer it is the the bottom, the more faded is gets.
0 means no fade and 1 means "start to fade as soon as the geometry is closer to the bottom face than to the center of the box" -
Fade bottom: same as "Fade Top" but for the opposite face of the box.
-
Fade Angle: not implemented yet. Should fade depending on the angle between the projected geometry and the box orientation.
|
|
Geometry inputs
Property |
Type |
Description |
|
|
Incorrectly named! Should be
|
|
|
Incorrectly named! Should be
|
|
|
Reserved, not yet implemented |
|
|
Decal projection box center in world coordinates |
|
|
Decal projection box size |
|
|
Decal projection box orientation |
Render-features
Diffuse
Exposes a diffuse map and diffuse color.
Property |
Type |
Description |
Input pins |
||
|
|
Texture map used for the diffuse lighting component |
|
|
Diffuse color, multiplied with the diffuse map color. |
Emissive
Exposes an emissive map to use as a purely emissive color in addition to the regular diffuse component.
Property |
Type |
Description |
Input pins |
||
|
|
Texture map used for the emissive lighting component. |
|
|
Emissive color, multiplied with the emissive texture |
Atlas
Allows to use a sprite-sheet as the diffuse texture, and control which subset of the texture is used using a per-particle TextureID input.
Property |
Type |
Description |
|
|
|
|
|
Subdivision count |
|
|
Frame blending type
|
|
|
Multiplier over the uv distortion |
Input pins |
||
|
|
Atlas definition (.pkat) |
|
|
Motion vectors texture, used to blend between frames when |
|
|
Index of the sub-rect to use inside the atlas |

