Skip to content

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 mesh

Mesh path; ignored when prototype is set.

scale ​

cpp
glm::vec3 scale

Base instance size (mesh path only; automatic mesh LOD is enabled).

color1 ​

cpp
glm::vec4 color1

color2 ​

cpp
glm::vec4 color2

Instance colors (mesh path only).

configure ​

cpp
std::function<void(InstancedVisuals &)> configure

Optional hook run on each new batch.

prototype ​

cpp
std::shared_ptr<InstancedVisuals> prototype

Optional ready batch whose prepared meshes each new cell batch shares, instead of loading mesh.

RaiSim — physics for robotics and AI.