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
std::string sourceMeshNamematerialName
std::string materialNameMaterial::name.
vertexCount
size_t vertexCountCPU vertex count.
indexCount
size_t indexCountCPU index count.
triangleCount
size_t triangleCountSee GeometryDiagnostics::triangleCount.
tinyTriangleCount
size_t tinyTriangleCountSee GeometryDiagnostics::tinyTriangleCount.
minTriangleArea
float minTriangleAreaSee GeometryDiagnostics::minTriangleArea.
maxTriangleArea
float maxTriangleAreaSee GeometryDiagnostics::maxTriangleArea.
materialTextureReferenceCount
size_t materialTextureReferenceCountNon-zero texture ids from collectMaterialTextureIds() (with duplicates).
textureSlots
std::vector<std::string> textureSlotsTypes of textures entries and names of bound Material texture slots.
perTextureUvTransformCount
size_t perTextureUvTransformCountMaterial::perTextureUvTransformCount().
uvTransformSlots
std::vector<std::string> uvTransformSlotsSlots with an authored per-texture UV transform.
shaderVariant
std::string shaderVariant"pbr" or "simple".
alphaMode
std::string alphaModeMaterial::alphaMode as text.
blendMode
std::string blendModeMaterial::blendMode as text.
renderPriority
int renderPriorityMaterial::renderPriority.
hasNextPass
bool hasNextPassMaterial::nextPass is set.
nextPassCount
size_t nextPassCountLength of the Material::nextPass chain.
nextPassMaterials
std::vector<std::string> nextPassMaterialsNames of the next-pass materials.
detailBlendMode
std::string detailBlendModeMaterial::detailAlbedoBlendMode as text.
cullMode
std::string cullModeMaterial::cullMode as text.
textureRepeatMode
std::string textureRepeatModeMaterial::textureRepeatMode as text.
textureFilter
std::string textureFilterMaterial::textureFilter as text.
albedoTextureForceSrgb
bool albedoTextureForceSrgbMaterial::albedoTextureForceSrgb.
albedoTextureMsdf
bool albedoTextureMsdfMaterial::albedoTextureMsdf.
msdfPixelRange
float msdfPixelRangeMaterial::msdfPixelRange.
msdfOutlineSize
float msdfOutlineSizeMaterial::msdfOutlineSize.
emissionOperator
std::string emissionOperatorMaterial::emissionOperator as text.
heightmapInvert
bool heightmapInvertMaterial::heightmapInvert.
heightmapVertexDisplacementScale
float heightmapVertexDisplacementScaleMaterial::heightmapVertexDisplacementScale.
heightmapVertexDisplacementMidlevel
float heightmapVertexDisplacementMidlevelMaterial::heightmapVertexDisplacementMidlevel.
billboardMode
std::string billboardModeMaterial::billboardMode as text.
billboardKeepScale
bool billboardKeepScaleMaterial::billboardKeepScale.
particlesAnimHFrames
int particlesAnimHFramesMaterial::particlesAnimHFrames.
particlesAnimVFrames
int particlesAnimVFramesMaterial::particlesAnimVFrames.
particlesAnimLoop
bool particlesAnimLoopMaterial::particlesAnimLoop.
particlesAnimFrameProgress
float particlesAnimFrameProgressMaterial::particlesAnimFrameProgress.
particleTrailsEnabled
bool particleTrailsEnabledMaterial::particleTrailsEnabled.
particleTrailLength
float particleTrailLengthMaterial::particleTrailLength.
particleTrailTaper
float particleTrailTaperMaterial::particleTrailTaper.
particleTrailWorldDirection
glm::vec3 particleTrailWorldDirectionMaterial::particleTrailWorldDirection.
fixedSize
bool fixedSizeMaterial::fixedSize.
usePointSize
bool usePointSizeMaterial::usePointSize.
pointSize
float pointSizeMaterial::pointSize.
useZClipScale
bool useZClipScaleMaterial::useZClipScale.
zClipScale
float zClipScaleMaterial::zClipScale.
useFovOverride
bool useFovOverrideMaterial::useFovOverride.
fovOverrideDegrees
float fovOverrideDegreesMaterial::fovOverrideDegrees.
secondaryUvCount
size_t secondaryUvCountVertices whose TexCoords2 differs from TexCoords.
detailUsesUv2
bool detailUsesUv2Material::detailUvLayer is Uv2.
aoUsesUv2
bool aoUsesUv2Material::aoUsesUv2.
emissiveUsesUv2
bool emissiveUsesUv2Material::emissiveUsesUv2.
lightmapUsesUv2
bool lightmapUsesUv2Material::lightmapUsesUv2.
uv2TriplanarEnabled
bool uv2TriplanarEnabledMaterial::uv2TriplanarEnabled.
uv2TriplanarWorldSpace
bool uv2TriplanarWorldSpaceMaterial::uv2TriplanarWorldSpace.
uv2TriplanarSharpness
float uv2TriplanarSharpnessMaterial::uv2TriplanarSharpness.
vertexColorCount
size_t vertexColorCountVertices with a non-white Color.
vertexColorAsAlbedo
bool vertexColorAsAlbedoMaterial::useVertexColorAsAlbedo.
doubleSided
bool doubleSidedMaterial::doubleSided.
unlit
bool unlitMaterial::unlit.
normalMapped
bool normalMappedAny normal, bent-normal, detail-normal or clearcoat-normal map is set.
tangentSource
std::string tangentSourceHow tangents were obtained (e.g. imported/generated).
validTangentCount
size_t validTangentCountVertices with a usable tangent.
fallbackTangentCount
size_t fallbackTangentCountVertices that needed a fallback tangent.
generatedTangents
bool generatedTangentstangentSource mentions "generated".
importedTangents
bool importedTangentstangentSource mentions "imported".
decal
bool decalMaterial::decalDepthBias is non-zero.
tinySurfaceDetail
bool tinySurfaceDetailMaterial::tinySurfaceDetail.
transmission
bool transmissionTransmission factor > 0 or map set.
refraction
bool refractionRefraction factor > 0 or map set.
volume
bool volumeAny volume thickness/attenuation setting is non-default.
subsurfaceSkinMode
bool subsurfaceSkinModeMaterial::subsurfaceSkinMode.
clearcoat
bool clearcoatClearcoat factor > 0 or any clearcoat map set.
sheen
bool sheenAny sheen setting is non-default.
anisotropy
bool anisotropyAnisotropy factor non-zero or map set.
specularIor
bool specularIorSpecular factor/color or IOR is non-default.
planarReflection
bool planarReflectionPlanar reflection enabled or strength > 0.
environmentIbl
bool environmentIblAny per-material environment/IBL map is set.
materialRenderFlags
bool materialRenderFlagsAny of the shadow/ambient/fog/specular-occlusion opt-out flags is set.
thinTwoSidedLighting
bool thinTwoSidedLightingMaterial::thinTwoSidedLighting.
thinTransmission
bool thinTransmissionMaterial::thinTransmissionStrength > 0.
subsurface
bool subsurfaceSubsurface strength > 0 or a subsurface map set.
backlight
bool backlightBacklight color non-zero or map set.
foliage
bool foliageMaterial::foliageType is not None.
foliageTwoSidedLighting
bool foliageTwoSidedLightingFoliage with two-sided lighting.
foliageTransmission
bool foliageTransmissionFoliage with transmission strength > 0.
foliageWeatherResponse
bool foliageWeatherResponseFoliage with a non-zero wet or snow response.
weatherAffectsWetness
bool weatherAffectsWetnessMaterial::weatherAffectsWetness.
weatherAffectsSnow
bool weatherAffectsSnowMaterial::weatherAffectsSnow.
weatherPuddleEligible
bool weatherPuddleEligibleMaterial::weatherPuddleEligible.
weatherSnowEligible
bool weatherSnowEligibleMaterial::weatherSnowEligible.
weatherMaskMapped
bool weatherMaskMappedMaterial::weatherMaskMap is set.
weatherPorosity
float weatherPorosityMaterial::weatherPorosity.
weatherSkipReason
std::string weatherSkipReasonWhy weather may be skipped or reduced, or "eligible".
depthTestMode
std::string depthTestModeMaterial::depthTest as text.
depthTestOverride
bool depthTestOverrideMaterial::hasDepthTestOverride().
depthWriteOverride
bool depthWriteOverrideMaterial::hasDepthWriteOverride().
depthTestResolved
bool depthTestResolvedMaterial::resolveDepthTest(true).
depthWriteResolved
bool depthWriteResolvedMaterial::resolveDepthWrite(true).
stencilOverride
bool stencilOverrideMaterial::hasStencilOverride().
stencilRead
bool stencilReadMaterial::stencilRead.
stencilWrite
bool stencilWriteMaterial::stencilWrite.
stencilWriteDepthFail
bool stencilWriteDepthFailMaterial::stencilWriteDepthFail.
stencilCompare
std::string stencilCompareMaterial::stencilCompare as text.
stencilReference
int stencilReferenceMaterial::stencilReference.
stencilMask
unsigned int stencilMaskLow 8 bits of Material::stencilMask.
stencilEffectMode
std::string stencilEffectModeMaterial::stencilEffectMode as text.
stencilEffectColor
glm::vec4 stencilEffectColorMaterial::stencilEffectColor.
stencilOutlineThickness
float stencilOutlineThicknessMaterial::stencilOutlineThickness.
pbr
bool pbr