Skip to content

raisin::Material::FoliageSettings ​

struct · #include <rayrai/Material.hpp>

Grouped foliage wind/weather authoring fields.

Wraps the ~12 foliage* fields scattered through the flat layout. Read with foliageSettings(), write back with setFoliageSettings().

Public attributes ​

type ​

cpp
FoliageType type

foliageType.

windStrength ​

cpp
float windStrength

foliageWindStrength.

rootHeight ​

cpp
float rootHeight

foliageRootHeight.

tipHeight ​

cpp
float tipHeight

foliageTipHeight.

stiffness ​

cpp
float stiffness

foliageStiffness.

flutterWeight ​

cpp
float flutterWeight

foliageFlutterWeight.

twoSidedLighting ​

cpp
bool twoSidedLighting

foliageTwoSidedLighting.

transmissionStrength ​

cpp
float transmissionStrength

foliageTransmissionStrength.

transmissionColor ​

cpp
glm::vec3 transmissionColor

foliageTransmissionColor.

weatherResponse ​

cpp
bool weatherResponse

foliageWeatherResponse.

wetResponse ​

cpp
float wetResponse

foliageWetResponse.

snowResponse ​

cpp
float snowResponse

foliageSnowResponse.

RaiSim — physics for robotics and AI.