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 idMaterial id referenced by Object::material and Terrain::material.
name
cpp
std::string nameDisplay name.
baseColor
cpp
Color baseColorBase color.
metallic
cpp
double metallicMetallic and roughness factors.
roughness
cpp
double roughnessemissive
cpp
Color emissiveEmissive color and strength.
emissiveStrength
cpp
double emissiveStrengthdoubleSided
cpp
bool doubleSideduseVertexColorAsAlbedo
cpp
bool useVertexColorAsAlbedovertexColorIsSrgb
cpp
bool vertexColorIsSrgbtextureBlendFactor
cpp
double textureBlendFactorao
cpp
double aoalphaMode
cpp
std::string alphaModeRenderer modes, by Engine 2 name (see raisin::Material).
blendMode
cpp
std::string blendModealphaAntialiasing
cpp
std::string alphaAntialiasingdistanceFadeMode
cpp
std::string distanceFadeModenormalConvention
cpp
std::string normalConventionemissionOperator
cpp
std::string emissionOperatordiffuseMode
cpp
std::string diffuseModespecularMode
cpp
std::string specularModerenderPriority
cpp
int renderPriorityalphaCutoff
cpp
double alphaCutoffalphaHashScale
cpp
double alphaHashScalealphaAntialiasingEdge
cpp
double alphaAntialiasingEdgedistanceFadeMin
cpp
double distanceFadeMindistanceFadeMax
cpp
double distanceFadeMaxproximityFadeEnabled
cpp
bool proximityFadeEnabledproximityFadeDistance
cpp
double proximityFadeDistancenormalStrength
cpp
double normalStrengthbentNormalStrength
cpp
double bentNormalStrengthaoStrength
cpp
double aoStrengthaoLightAffect
cpp
double aoLightAffectspecularFactor
cpp
double specularFactorspecularColor
cpp
Color specularColortextureBlendTexture
cpp
std::string textureBlendTextureTexture that blends the material over the mesh's own texture (a file reference).
albedoTexture
cpp
std::string albedoTextureMaterial image references, in the same order as Engine 2 positional fields 12–17.
normalTexture
cpp
std::string normalTexturemetallicTexture
cpp
std::string metallicTextureroughnessTexture
cpp
std::string roughnessTextureaoTexture
cpp
std::string aoTextureemissiveTexture
cpp
std::string emissiveTexturebentNormalTexture
cpp
std::string bentNormalTextureAdditional image references used by Engine 2 material slots.
metallicRoughnessTexture
cpp
std::string metallicRoughnessTextureormTexture
cpp
std::string ormTexturetransmissionTexture
cpp
std::string transmissionTexturerefractionTexture
cpp
std::string refractionTexturethicknessTexture
cpp
std::string thicknessTexturesubsurfaceTexture
cpp
std::string subsurfaceTexturesubsurfaceTransmittanceTexture
cpp
std::string subsurfaceTransmittanceTexturebacklightTexture
cpp
std::string backlightTextureclearcoatTexture
cpp
std::string clearcoatTextureclearcoatRoughnessTexture
cpp
std::string clearcoatRoughnessTextureclearcoatNormalTexture
cpp
std::string clearcoatNormalTexturesheenColorTexture
cpp
std::string sheenColorTexturesheenRoughnessTexture
cpp
std::string sheenRoughnessTextureanisotropyTexture
cpp
std::string anisotropyTextureweatherMaskTexture
cpp
std::string weatherMaskTexturerimTexture
cpp
std::string rimTextureheightTexture
cpp
std::string heightTexturedetailMaskTexture
cpp
std::string detailMaskTexturedetailAlbedoTexture
cpp
std::string detailAlbedoTexturedetailNormalTexture
cpp
std::string detailNormalTexturelightmapTexture
cpp
std::string lightmapTexturealbedoTransform
cpp
TextureTransform albedoTransformnormalTransform
cpp
TextureTransform normalTransformmetallicRoughnessTransform
cpp
TextureTransform metallicRoughnessTransform