Shader: rendinst_tree_colored
Overview
A basic shader for rendering vegetation.
Textures
tex0: Diffuse texture with alpha channel.
Parameters
Default values are indicated in quotes.
script:t="atest=0"
– Enables alpha test.script:t="interactions=0"
– Configures interaction between characters and vegetation.0
: Disabled1
: Tall plants2
: Bushes
script:t="interaction_strength=0.8"
– Controls the strength of interactions, ranging from0
to1
(values above1
might work as well). This is a multiplier and is only effective wheninteractions
is set to1
or2
.script:t="angle_dissolve=1"
– Toggles angle-based dissolve effects.script:t="spherical_normals=1"
– Applies spherical normals over branch normals to smooth sharp edges and reduce low-poly appearance.Note
This feature is rarely used and may behave unexpectedly.
Vertex Colors
Unlike in War Thunder, the third channel is not used.
Red Channel: Controls fine vertex jitter. The shift occurs along the vertex normals but only in the horizontal plane.
Green Channel: Controls oscillation phase. It shifts the amplitude oscillation by 90 degrees, randomizing the fine vertex jitter.