Skip to content

raisin::Material::ParallaxSettings ​

struct · #include <rayrai/Material.hpp>

Grouped tangent-space heightmap / parallax controls.

Wraps the heightmap* fields. scale == 0 keeps parallax disabled regardless of deepParallax.

Public attributes ​

scale ​

cpp
float scale

heightmapScale.

deepParallax ​

cpp
bool deepParallax

heightmapDeepParallax.

minLayers ​

cpp
int minLayers

heightmapMinLayers.

maxLayers ​

cpp
int maxLayers

heightmapMaxLayers.

flip ​

cpp
glm::vec2 flip

heightmapFlip.

invert ​

cpp
bool invert

heightmapInvert.

RaiSim — physics for robotics and AI.