raisin::Material::TextureBindingInfo
struct · #include <rayrai/Material.hpp>
One row of textureBindingTable(): how applyTo() binds a material texture.
Public attributes
slot
cpp
const char *slotSlot name, e.g. "albedo".
samplerUniform
cpp
const char *samplerUniformSampler uniform, e.g. "material.albedoMap".
presenceUniform
cpp
const char *presenceUniformBool uniform telling the shader the map is bound.
target
cpp
const char *target"2D" or "cubemap".
textureUnit
cpp
int textureUnitTexture unit (preferred unit for some slots).