Skip to content

raisin::InstancedVisuals::InstanceSpec ​

struct · #include <rayrai/Visuals.hpp>

One instance for addInstances().

Public attributes ​

position ​

cpp
glm::vec3 position

World position (m).

orientation ​

cpp
glm::vec4 orientation

wxyz: x holds w, w holds z

scale ​

cpp
glm::vec3 scale

Multiplied by baseScale().

colorWeight ​

cpp
float colorWeight

0 = color1, 1 = color2 (clamped to [0, 1] by the shader).

RaiSim — physics for robotics and AI.