FoliageOptions
What defineFoliage adds to the engine’s foliage.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
backlight? |
false | ColorRepresentation |
The share of each colour of light a leaf lit from behind lets through, multiplied by the leaf’s own colour, as Godot’s backlight and Unreal’s subsurface colour give. The light gathers where the eye looks toward the light through the leaf, about 2.6 times what the leaf’s front reflects there, and fades with the light behind the eye; averaged over every view, white passes two thirds of it. The sky’s and the environment’s light pass through the same share. Only cut leaves, with an alphaTest, let light through. Left out, white, as Unreal’s two-sided foliage passes with no subsurface colour set; false passes none. |
crownNormalBlend? |
number |
How far each leaf’s normal turns toward its crown’s, from 0, the card’s own, to 1, the crown’s: at 1 a crown reads as one mass, with a lit top and a shaded underside. The crown’s normal is the model’s _CROWN_NORMAL where it carries one, and otherwise the engine’s, from the leaf mesh’s bounds. Left out, 1. |
variation? |
false | FoliageVariationOptions |
How each copy’s leaves differ in colour, so a forest of one model does not read as stamps: every InstancedModel copy and every mesh of one copy draws one random number, as Unreal’s PerInstanceRandom gives. Left out, the defaults of each field; false, every copy alike. |
wind? |
false | FoliageWindOptions |
How the plant moves in the look’s wind, bark and leaves together, its shadow with it. A look’s still air holds it still, and plants move as the grass does by the player’s Plant sway setting. Left out, the defaults of each field; false holds the plant still in any wind. |