Triangle
Overview
Triangle renderers displays the particles as triangles.
You can specify the position, color, normal, and UVs of each vertex of the triangle and have a full control over the shape and transformation of the triangle.
This renderer is not yet supported in all our public integrations.

Default Materials:
-
Default_Triangle: Regular transparent triangle (additive, alpha-blended, or premultiplied-alpha)
-
Opaque_Triangle: Opaque triangle, can use alpha-testing for cutouts
Triangle custom normals
If your triangles are lit, you might want to specify custom normals for each vertex of the triangle renderer. By default, the triangle renderer can generate its own normal and tangent.
Here is an effect that reconstructs a mesh using the triangle renderer, showing the result with and without providing per-vertex normals to the renderer.
You can also use the "Normal Bending Factor" that will curve the normals and tangents depending on the barycenter of the triangle.
Triangle custom UVs
You can also specify a per-vertex UV coordinate on the triangle renderer using the "Triangle Custom U V s" feature. The tangent of the triangle will be automatically computed depending on the UVs and normals set as inputs.
The default value for the vertices UVs when the "Triangle Custom U V s" feature is disabled are (0, 0), (1, 0), (0, 1).
Material: Default_Triangle
Property |
Type |
Description |
|
|
Enables the Lit rendering feature: |
|
|
Enables the Triangle Custom Normals rendering feature: |
|
|
Enables the Triangle Custom UVs rendering feature: |
|
|
Enables the Normal Bend rendering feature: |
|
|
Transparent blending mode.
|
|
|
Allows to specify a custom sorting key.
|
|
|
Global sort order of the draw calls. |
|
|
Used as a depth bias to allow offseting the draw call bbox along the camera axis (in world units). |
Input pins |
||
|
|
Position of the first triangle vertex in world coordinates |
|
|
Position of the second triangle vertex in world coordinates |
|
|
Position of the third triangle vertex in world coordinates |
|
|
Texture map used for the diffuse lighting component. |
|
|
Diffuse color, multiplied with the diffuse map color. |
|
|
Value to be used for sorting when |
Material: Opaque_Triangle
Property |
Type |
Description |
|
|
Enables the Lit rendering feature: |
|
|
Enables the Triangle Custom Normals rendering feature: |
|
|
Enables the Triangle Custom UVs rendering feature: |
|
|
Enables the Normal Bend rendering feature: |
|
|
Opaque mode
|
|
|
Opacity mask threshold value. |
Input pins |
||
|
|
Position of the first triangle vertex in world coordinates |
|
|
Position of the second triangle vertex in world coordinates |
|
|
Position of the third triangle vertex in world coordinates |
|
|
Texture map used for the diffuse lighting component. |
|
|
Diffuse color, multiplied with the diffuse map color. |
Render-features
Lit
Lights the particle with the scene lights.
Property |
Type |
Description |
|
|
Can cast shadows |
|
|
Material roughness (PBR). A roughness of |
|
|
Material metalness (PBR). A metalness of |
|
|
|
Input pins |
||
|
|
Texture map representing tangent-space normals to be used for lighting. |
|
|
Roughness ® and Metalness (G) packed in an RGBA texture |
|
|
|
TriangleCustomNormals
Allows to specify a distinct normal for each triangle vertex. When disabled, each vertex will use the normal of the triangle plane.
Property |
Type |
Description |
|
|
Normal of the first triangle vertex in world coordinates |
|
|
Normal of the second triangle vertex in world coordinates |
|
|
Normal of the third triangle vertex in world coordinates |