struct

FMaterialState

Everything a material IS, kept apart from the object that carries the reference count. Material derives from RefCounted, whose count must never be copied — but the render proxy still snapshots a surface every frame and Clone() still needs a field-wise duplicate. Holding the surface in a plainly copyable base is what lets both of those exist without a hand-written member list that silently skips the next field somebody adds.

Module
Renderer
Header
#include "Renderer/Material.h"
Namespace
Mowo

Properties

TypeNameDescription
Vec4m_baseColorDefault Vec4(1.0f, 1.0f, 1.0f, 1.0f).
floatm_metallic0 = dielectric, 1 = metal Default 0.0f.
floatm_roughness0 = smooth/mirror, 1 = rough/diffuse Default 0.5f.
floatm_aoAmbient occlusion (1 = no occlusion) Default 1.0f.
floatm_opacity1 = opaque, < 1 = transparent Default 1.0f.
EMaterialBlendModem_blendModeDefault EMaterialBlendMode::Alpha.
Vec3m_emissiveColorDefault Vec3(0.0f, 0.0f, 0.0f).
floatm_emissiveStrengthDefault 0.0f.
Vec3m_specularColorLegacy specular (for backward compatibility with non-PBR shaders) Default Vec3(1.0f, 1.0f, 1.0f).
floatm_shininessDefault 32.0f.
Ref<Texture2D>m_albedoTex
Ref<Texture2D>m_normalTex
Ref<Texture2D>m_metallicRoughnessTexCombined: R=metallic, G=roughness
Ref<Texture2D>m_aoTex
Ref<Texture2D>m_emissiveTex
Ref<Texture2D>m_opacityTexR = coverage (standalone cutout mask)
Ref<Texture2D>m_detailAlbedoTexoverlay albedo
Ref<Texture2D>m_detailNormalTexoverlay tangent-space normal
Ref<Texture2D>m_maskMapTexR=metallic, G=AO, B=detail mask, A=smoothness
Ref<Texture2D>m_heightTexR = height (0=surface, 1=deepest)
Vec2m_detailTilingUV multiplier for detail textures Default Vec2(4.0f, 4.0f).
floatm_detailAlbedoStrength0..1 — blend amount over primary albedo Default 1.0f.
floatm_detailNormalStrength0..1 — strength of detail normal influence Default 1.0f.
floatm_parallaxHeightScalePOM displacement amount; 0.02-0.08 typical Default 0.05f.
floatm_displacementMagnitudeMeshlet-path geometric displacement from the height map, object-space units; < 0 = not set here (an instance then takes its parent's; a root reads 0 = off). No override bit is left in MaterialOverride, so the sentinel is what carries "inherit". Default -1.0f.
floatm_displacementCenterheight that stays put; < 0 = inherit / 0.5 Default -1.0f.
floatm_clearCoatIntensity0 = disabled, 1 = full lobe Default 0.0f.
floatm_clearCoatRoughness0 = mirror coat (glossy), 1 = matte coat Default 0.0f.
floatm_anisotropy-1..1; 0 = isotropic GGX Default 0.0f.
floatm_subsurfaceStrength0 = no SSS, 1 = max wrap Default 0.0f.
floatm_iridescenceIntensity0 = no shift, 1 = full rainbow Fresnel Default 0.0f.
boolm_hairanisotropic Kajiya-Kay strand shading (hair/fur) Default false.
EShadingModelm_shadingModelDefault EShadingModel::DefaultLit.
floatm_transmissionStrengthTwoSidedFoliage back-light bleed, 0..1 Default 0.0f.
floatm_sheenIntensityCloth sheen lobe strength, 0..1 Default 0.0f.
FEyeSurfaceParamsm_eyeParamsEye: transported by record, never by a GBuffer lane
uint32_tm_textureVersionDefault 0.
std::stringm_graphShaderId
uint64_tm_graphShaderHashDefault 0.
boolm_graphHasWpoDefault false.
floatm_graphWpoBoundDefault 0.0f.
uint32_tm_substrateTopDefault 0.
Vec4 m_graphParams[4] =
std::vector<Vec4>m_graphParamsExtLanes 4.. of a graph whose parameters outgrew the legacy four (see MaterialGraph::FGraphParam). Empty for every material that fits, so the per-frame proxy copy of such a material costs exactly what it did.
std::vector<Ref<Texture2D>>m_graphTextures
uint32_tm_graphArraySlotMaskDefault 0.
boolm_terrainSplatDefault false.
boolm_foliageWindDefault false.
boolm_alphaMaskedDefault false.
boolm_alphaBlendedDefault false.
floatm_alphaCutoffDefault 0.5f.
boolm_doubleSidedDefault false.
Vec2m_windDirectionDefault Vec2(1.0f, 0.0f).
floatm_windStrengthDefault 0.0f.
floatm_windSpeedDefault 1.0f.
boolm_waterDefault false.
boolm_reflectiveforward transparent reflection opt-in Default false.
Vec2m_waveDirectionDefault Vec2(1.0f, 0.0f).
floatm_waveAmplitudeDefault 0.4f.
floatm_waveLengthDefault 24.0f.
floatm_waveSteepnessDefault 0.6f.
floatm_waveSpeedDefault 4.0f.
floatm_waveTimeDefault 0.0f.
boolm_worldGridDefault false.
FWorldGridParamsm_worldGridParams
std::stringm_physicsMaterialWhat the surface is made of once something collides with it. The path names a .physmat, which is where friction, restitution and the surface type are already authored together; the inline name is the fallback for a material that only wants to say "this is metal". The surface is held as a NAME rather than the enum because ESurfaceType lives in Physics, well above the renderer in the module order — the same reason it serializes by name everywhere else.
std::stringm_physicsSurface
std::stringm_name
Material*m_parentnull = base material Default nullptr.
MaterialOverridem_overrideFlagsWhich properties are overridden (All = standalone material) Default MaterialOverride::All.
FMaterialTransparentDepthm_transparentWrites
FMaterialIdentitym_identity
FMaterialStateVersionm_stateVersion
Generated from Renderer/Material.h via renderer.json · Nov 4, 2026Version 1.0.0