Skip to content

raisin::Visuals::FrameCacheMaterialState ​

struct · #include <rayrai/Visuals.hpp>

Summarize static frame-cache material state in one mesh traversal.

Internal: used by the renderer's frame cache.

Public attributes ​

cacheable ​

cpp
bool cacheable

False (other fields default) when a material override, remap or overlay is set.

hasTextures ​

cpp
bool hasTextures

Some submesh has OpenGLMesh::textures.

hasPbrMeshes ​

cpp
bool hasPbrMeshes

Some submesh uses PBR shading.

transparent ​

cpp
bool transparent

Visual alpha/transparency/self fade, or a submesh needs the transparent pass.

specialBlendMode ​

cpp
bool specialBlendMode

Some submesh blend mode is not Material::BlendMode::Mix.

renderPriority ​

cpp
int renderPriority

Highest submesh render priority.

sortKeys ​

cpp
MaterialSortKeys sortKeys

Sort keys (simpleOnly equals all here).

RaiSim — physics for robotics and AI.