Skip to content

raisin::Material::TextureBindingInfo ​

struct · #include <rayrai/Material.hpp>

One row of textureBindingTable(): how applyTo() binds a material texture.

Public attributes ​

slot ​

cpp
const char *slot

Slot name, e.g. "albedo".

samplerUniform ​

cpp
const char *samplerUniform

Sampler uniform, e.g. "material.albedoMap".

presenceUniform ​

cpp
const char *presenceUniform

Bool uniform telling the shader the map is bound.

target ​

cpp
const char *target

"2D" or "cubemap".

textureUnit ​

cpp
int textureUnit

Texture unit (preferred unit for some slots).

RaiSim — physics for robotics and AI.