raisin::StreamedFoliage::Species
struct · #include <rayrai/StreamedFoliage.hpp>
One plant type. Each resident cell gets one InstancedVisuals batch per species.
Public attributes
mesh
cpp
std::string meshMesh path; ignored when prototype is set.
scale
cpp
glm::vec3 scaleBase instance size (mesh path only; automatic mesh LOD is enabled).
color1
cpp
glm::vec4 color1color2
cpp
glm::vec4 color2Instance colors (mesh path only).
configure
cpp
std::function<void(InstancedVisuals &)> configureOptional hook run on each new batch.
prototype
cpp
std::shared_ptr<InstancedVisuals> prototypeOptional ready batch whose prepared meshes each new cell batch shares, instead of loading mesh.