Skip to content

raisim::rscene::Material ​

struct · #include <raisim/Rscene.hpp>

A render material. RaiSim bodies and terrain referencing it take baseColor as their appearance. rayrai builds a full material from the other fields for objects it draws itself (visual-only objects), including the resolved texture references, as Engine 2 does.

Public attributes ​

id ​

cpp
std::string id

Material id referenced by Object::material and Terrain::material.

name ​

cpp
std::string name

Display name.

baseColor ​

cpp
Color baseColor

Base color.

metallic ​

cpp
double metallic

Metallic and roughness factors.

roughness ​

cpp
double roughness

emissive ​

cpp
Color emissive

Emissive color and strength.

emissiveStrength ​

cpp
double emissiveStrength

doubleSided ​

cpp
bool doubleSided

useVertexColorAsAlbedo ​

cpp
bool useVertexColorAsAlbedo

vertexColorIsSrgb ​

cpp
bool vertexColorIsSrgb

textureBlendFactor ​

cpp
double textureBlendFactor

ao ​

cpp
double ao

alphaMode ​

cpp
std::string alphaMode

Renderer modes, by Engine 2 name (see raisin::Material).

blendMode ​

cpp
std::string blendMode

alphaAntialiasing ​

cpp
std::string alphaAntialiasing

distanceFadeMode ​

cpp
std::string distanceFadeMode

normalConvention ​

cpp
std::string normalConvention

emissionOperator ​

cpp
std::string emissionOperator

diffuseMode ​

cpp
std::string diffuseMode

specularMode ​

cpp
std::string specularMode

renderPriority ​

cpp
int renderPriority

alphaCutoff ​

cpp
double alphaCutoff

alphaHashScale ​

cpp
double alphaHashScale

alphaAntialiasingEdge ​

cpp
double alphaAntialiasingEdge

distanceFadeMin ​

cpp
double distanceFadeMin

distanceFadeMax ​

cpp
double distanceFadeMax

proximityFadeEnabled ​

cpp
bool proximityFadeEnabled

proximityFadeDistance ​

cpp
double proximityFadeDistance

normalStrength ​

cpp
double normalStrength

bentNormalStrength ​

cpp
double bentNormalStrength

aoStrength ​

cpp
double aoStrength

aoLightAffect ​

cpp
double aoLightAffect

specularFactor ​

cpp
double specularFactor

specularColor ​

cpp
Color specularColor

textureBlendTexture ​

cpp
std::string textureBlendTexture

Texture that blends the material over the mesh's own texture (a file reference).

albedoTexture ​

cpp
std::string albedoTexture

Material image references, in the same order as Engine 2 positional fields 12–17.

normalTexture ​

cpp
std::string normalTexture

metallicTexture ​

cpp
std::string metallicTexture

roughnessTexture ​

cpp
std::string roughnessTexture

aoTexture ​

cpp
std::string aoTexture

emissiveTexture ​

cpp
std::string emissiveTexture

bentNormalTexture ​

cpp
std::string bentNormalTexture

Additional image references used by Engine 2 material slots.

metallicRoughnessTexture ​

cpp
std::string metallicRoughnessTexture

ormTexture ​

cpp
std::string ormTexture

transmissionTexture ​

cpp
std::string transmissionTexture

refractionTexture ​

cpp
std::string refractionTexture

thicknessTexture ​

cpp
std::string thicknessTexture

subsurfaceTexture ​

cpp
std::string subsurfaceTexture

subsurfaceTransmittanceTexture ​

cpp
std::string subsurfaceTransmittanceTexture

backlightTexture ​

cpp
std::string backlightTexture

clearcoatTexture ​

cpp
std::string clearcoatTexture

clearcoatRoughnessTexture ​

cpp
std::string clearcoatRoughnessTexture

clearcoatNormalTexture ​

cpp
std::string clearcoatNormalTexture

sheenColorTexture ​

cpp
std::string sheenColorTexture

sheenRoughnessTexture ​

cpp
std::string sheenRoughnessTexture

anisotropyTexture ​

cpp
std::string anisotropyTexture

weatherMaskTexture ​

cpp
std::string weatherMaskTexture

rimTexture ​

cpp
std::string rimTexture

heightTexture ​

cpp
std::string heightTexture

detailMaskTexture ​

cpp
std::string detailMaskTexture

detailAlbedoTexture ​

cpp
std::string detailAlbedoTexture

detailNormalTexture ​

cpp
std::string detailNormalTexture

lightmapTexture ​

cpp
std::string lightmapTexture

albedoTransform ​

cpp
TextureTransform albedoTransform

normalTransform ​

cpp
TextureTransform normalTransform

metallicRoughnessTransform ​

cpp
TextureTransform metallicRoughnessTransform

RaiSim — physics for robotics and AI.