Skip to content

OpenGLMesh::MeshDiagnostics ​

struct · #include <rayrai/OpenGLMesh.hpp>

Internal: per-mesh geometry/material record for structured diagnostics output (see collectMeshDiagnostics()). Most fields mirror the Material setting named in their comment.

Public attributes ​

sourceMeshName ​

cpp
std::string sourceMeshName

debugSourceMeshName.

materialName ​

cpp
std::string materialName

Material::name.

vertexCount ​

cpp
size_t vertexCount

CPU vertex count.

indexCount ​

cpp
size_t indexCount

CPU index count.

triangleCount ​

cpp
size_t triangleCount

See GeometryDiagnostics::triangleCount.

tinyTriangleCount ​

cpp
size_t tinyTriangleCount

See GeometryDiagnostics::tinyTriangleCount.

minTriangleArea ​

cpp
float minTriangleArea

See GeometryDiagnostics::minTriangleArea.

maxTriangleArea ​

cpp
float maxTriangleArea

See GeometryDiagnostics::maxTriangleArea.

materialTextureReferenceCount ​

cpp
size_t materialTextureReferenceCount

Non-zero texture ids from collectMaterialTextureIds() (with duplicates).

textureSlots ​

cpp
std::vector<std::string> textureSlots

Types of textures entries and names of bound Material texture slots.

perTextureUvTransformCount ​

cpp
size_t perTextureUvTransformCount

Material::perTextureUvTransformCount().

uvTransformSlots ​

cpp
std::vector<std::string> uvTransformSlots

Slots with an authored per-texture UV transform.

shaderVariant ​

cpp
std::string shaderVariant

"pbr" or "simple".

alphaMode ​

cpp
std::string alphaMode

Material::alphaMode as text.

blendMode ​

cpp
std::string blendMode

Material::blendMode as text.

renderPriority ​

cpp
int renderPriority

Material::renderPriority.

hasNextPass ​

cpp
bool hasNextPass

Material::nextPass is set.

nextPassCount ​

cpp
size_t nextPassCount

Length of the Material::nextPass chain.

nextPassMaterials ​

cpp
std::vector<std::string> nextPassMaterials

Names of the next-pass materials.

detailBlendMode ​

cpp
std::string detailBlendMode

Material::detailAlbedoBlendMode as text.

cullMode ​

cpp
std::string cullMode

Material::cullMode as text.

textureRepeatMode ​

cpp
std::string textureRepeatMode

Material::textureRepeatMode as text.

textureFilter ​

cpp
std::string textureFilter

Material::textureFilter as text.

albedoTextureForceSrgb ​

cpp
bool albedoTextureForceSrgb

Material::albedoTextureForceSrgb.

albedoTextureMsdf ​

cpp
bool albedoTextureMsdf

Material::albedoTextureMsdf.

msdfPixelRange ​

cpp
float msdfPixelRange

Material::msdfPixelRange.

msdfOutlineSize ​

cpp
float msdfOutlineSize

Material::msdfOutlineSize.

emissionOperator ​

cpp
std::string emissionOperator

Material::emissionOperator as text.

heightmapInvert ​

cpp
bool heightmapInvert

Material::heightmapInvert.

heightmapVertexDisplacementScale ​

cpp
float heightmapVertexDisplacementScale

Material::heightmapVertexDisplacementScale.

heightmapVertexDisplacementMidlevel ​

cpp
float heightmapVertexDisplacementMidlevel

Material::heightmapVertexDisplacementMidlevel.

billboardMode ​

cpp
std::string billboardMode

Material::billboardMode as text.

billboardKeepScale ​

cpp
bool billboardKeepScale

Material::billboardKeepScale.

particlesAnimHFrames ​

cpp
int particlesAnimHFrames

Material::particlesAnimHFrames.

particlesAnimVFrames ​

cpp
int particlesAnimVFrames

Material::particlesAnimVFrames.

particlesAnimLoop ​

cpp
bool particlesAnimLoop

Material::particlesAnimLoop.

particlesAnimFrameProgress ​

cpp
float particlesAnimFrameProgress

Material::particlesAnimFrameProgress.

particleTrailsEnabled ​

cpp
bool particleTrailsEnabled

Material::particleTrailsEnabled.

particleTrailLength ​

cpp
float particleTrailLength

Material::particleTrailLength.

particleTrailTaper ​

cpp
float particleTrailTaper

Material::particleTrailTaper.

particleTrailWorldDirection ​

cpp
glm::vec3 particleTrailWorldDirection

Material::particleTrailWorldDirection.

fixedSize ​

cpp
bool fixedSize

Material::fixedSize.

usePointSize ​

cpp
bool usePointSize

Material::usePointSize.

pointSize ​

cpp
float pointSize

Material::pointSize.

useZClipScale ​

cpp
bool useZClipScale

Material::useZClipScale.

zClipScale ​

cpp
float zClipScale

Material::zClipScale.

useFovOverride ​

cpp
bool useFovOverride

Material::useFovOverride.

fovOverrideDegrees ​

cpp
float fovOverrideDegrees

Material::fovOverrideDegrees.

secondaryUvCount ​

cpp
size_t secondaryUvCount

Vertices whose TexCoords2 differs from TexCoords.

detailUsesUv2 ​

cpp
bool detailUsesUv2

Material::detailUvLayer is Uv2.

aoUsesUv2 ​

cpp
bool aoUsesUv2

Material::aoUsesUv2.

emissiveUsesUv2 ​

cpp
bool emissiveUsesUv2

Material::emissiveUsesUv2.

lightmapUsesUv2 ​

cpp
bool lightmapUsesUv2

Material::lightmapUsesUv2.

uv2TriplanarEnabled ​

cpp
bool uv2TriplanarEnabled

Material::uv2TriplanarEnabled.

uv2TriplanarWorldSpace ​

cpp
bool uv2TriplanarWorldSpace

Material::uv2TriplanarWorldSpace.

uv2TriplanarSharpness ​

cpp
float uv2TriplanarSharpness

Material::uv2TriplanarSharpness.

vertexColorCount ​

cpp
size_t vertexColorCount

Vertices with a non-white Color.

vertexColorAsAlbedo ​

cpp
bool vertexColorAsAlbedo

Material::useVertexColorAsAlbedo.

doubleSided ​

cpp
bool doubleSided

Material::doubleSided.

unlit ​

cpp
bool unlit

Material::unlit.

normalMapped ​

cpp
bool normalMapped

Any normal, bent-normal, detail-normal or clearcoat-normal map is set.

tangentSource ​

cpp
std::string tangentSource

How tangents were obtained (e.g. imported/generated).

validTangentCount ​

cpp
size_t validTangentCount

Vertices with a usable tangent.

fallbackTangentCount ​

cpp
size_t fallbackTangentCount

Vertices that needed a fallback tangent.

generatedTangents ​

cpp
bool generatedTangents

tangentSource mentions "generated".

importedTangents ​

cpp
bool importedTangents

tangentSource mentions "imported".

decal ​

cpp
bool decal

Material::decalDepthBias is non-zero.

tinySurfaceDetail ​

cpp
bool tinySurfaceDetail

Material::tinySurfaceDetail.

transmission ​

cpp
bool transmission

Transmission factor > 0 or map set.

refraction ​

cpp
bool refraction

Refraction factor > 0 or map set.

volume ​

cpp
bool volume

Any volume thickness/attenuation setting is non-default.

subsurfaceSkinMode ​

cpp
bool subsurfaceSkinMode

Material::subsurfaceSkinMode.

clearcoat ​

cpp
bool clearcoat

Clearcoat factor > 0 or any clearcoat map set.

sheen ​

cpp
bool sheen

Any sheen setting is non-default.

anisotropy ​

cpp
bool anisotropy

Anisotropy factor non-zero or map set.

specularIor ​

cpp
bool specularIor

Specular factor/color or IOR is non-default.

planarReflection ​

cpp
bool planarReflection

Planar reflection enabled or strength > 0.

environmentIbl ​

cpp
bool environmentIbl

Any per-material environment/IBL map is set.

materialRenderFlags ​

cpp
bool materialRenderFlags

Any of the shadow/ambient/fog/specular-occlusion opt-out flags is set.

thinTwoSidedLighting ​

cpp
bool thinTwoSidedLighting

Material::thinTwoSidedLighting.

thinTransmission ​

cpp
bool thinTransmission

Material::thinTransmissionStrength > 0.

subsurface ​

cpp
bool subsurface

Subsurface strength > 0 or a subsurface map set.

backlight ​

cpp
bool backlight

Backlight color non-zero or map set.

foliage ​

cpp
bool foliage

Material::foliageType is not None.

foliageTwoSidedLighting ​

cpp
bool foliageTwoSidedLighting

Foliage with two-sided lighting.

foliageTransmission ​

cpp
bool foliageTransmission

Foliage with transmission strength > 0.

foliageWeatherResponse ​

cpp
bool foliageWeatherResponse

Foliage with a non-zero wet or snow response.

weatherAffectsWetness ​

cpp
bool weatherAffectsWetness

Material::weatherAffectsWetness.

weatherAffectsSnow ​

cpp
bool weatherAffectsSnow

Material::weatherAffectsSnow.

weatherPuddleEligible ​

cpp
bool weatherPuddleEligible

Material::weatherPuddleEligible.

weatherSnowEligible ​

cpp
bool weatherSnowEligible

Material::weatherSnowEligible.

weatherMaskMapped ​

cpp
bool weatherMaskMapped

Material::weatherMaskMap is set.

weatherPorosity ​

cpp
float weatherPorosity

Material::weatherPorosity.

weatherSkipReason ​

cpp
std::string weatherSkipReason

Why weather may be skipped or reduced, or "eligible".

depthTestMode ​

cpp
std::string depthTestMode

Material::depthTest as text.

depthTestOverride ​

cpp
bool depthTestOverride

Material::hasDepthTestOverride().

depthWriteOverride ​

cpp
bool depthWriteOverride

Material::hasDepthWriteOverride().

depthTestResolved ​

cpp
bool depthTestResolved

Material::resolveDepthTest(true).

depthWriteResolved ​

cpp
bool depthWriteResolved

Material::resolveDepthWrite(true).

stencilOverride ​

cpp
bool stencilOverride

Material::hasStencilOverride().

stencilRead ​

cpp
bool stencilRead

Material::stencilRead.

stencilWrite ​

cpp
bool stencilWrite

Material::stencilWrite.

stencilWriteDepthFail ​

cpp
bool stencilWriteDepthFail

Material::stencilWriteDepthFail.

stencilCompare ​

cpp
std::string stencilCompare

Material::stencilCompare as text.

stencilReference ​

cpp
int stencilReference

Material::stencilReference.

stencilMask ​

cpp
unsigned int stencilMask

Low 8 bits of Material::stencilMask.

stencilEffectMode ​

cpp
std::string stencilEffectMode

Material::stencilEffectMode as text.

stencilEffectColor ​

cpp
glm::vec4 stencilEffectColor

Material::stencilEffectColor.

stencilOutlineThickness ​

cpp
float stencilOutlineThickness

Material::stencilOutlineThickness.

pbr ​

cpp
bool pbr

usesPbrShading().

RaiSim — physics for robotics and AI.