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
| Type | Name | Description |
|---|---|---|
Vec4 | m_baseColor | Default Vec4(1.0f, 1.0f, 1.0f, 1.0f). |
float | m_metallic | 0 = dielectric, 1 = metal Default 0.0f. |
float | m_roughness | 0 = smooth/mirror, 1 = rough/diffuse Default 0.5f. |
float | m_ao | Ambient occlusion (1 = no occlusion) Default 1.0f. |
float | m_opacity | 1 = opaque, < 1 = transparent Default 1.0f. |
EMaterialBlendMode | m_blendMode | Default EMaterialBlendMode::Alpha. |
Vec3 | m_emissiveColor | Default Vec3(0.0f, 0.0f, 0.0f). |
float | m_emissiveStrength | Default 0.0f. |
Vec3 | m_specularColor | Legacy specular (for backward compatibility with non-PBR shaders) Default Vec3(1.0f, 1.0f, 1.0f). |
float | m_shininess | Default 32.0f. |
Ref<Texture2D> | m_albedoTex | |
Ref<Texture2D> | m_normalTex | |
Ref<Texture2D> | m_metallicRoughnessTex | Combined: R=metallic, G=roughness |
Ref<Texture2D> | m_aoTex | |
Ref<Texture2D> | m_emissiveTex | |
Ref<Texture2D> | m_opacityTex | R = coverage (standalone cutout mask) |
Ref<Texture2D> | m_detailAlbedoTex | overlay albedo |
Ref<Texture2D> | m_detailNormalTex | overlay tangent-space normal |
Ref<Texture2D> | m_maskMapTex | R=metallic, G=AO, B=detail mask, A=smoothness |
Ref<Texture2D> | m_heightTex | R = height (0=surface, 1=deepest) |
Vec2 | m_detailTiling | UV multiplier for detail textures Default Vec2(4.0f, 4.0f). |
float | m_detailAlbedoStrength | 0..1 — blend amount over primary albedo Default 1.0f. |
float | m_detailNormalStrength | 0..1 — strength of detail normal influence Default 1.0f. |
float | m_parallaxHeightScale | POM displacement amount; 0.02-0.08 typical Default 0.05f. |
float | m_displacementMagnitude | Meshlet-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. |
float | m_displacementCenter | height that stays put; < 0 = inherit / 0.5 Default -1.0f. |
float | m_clearCoatIntensity | 0 = disabled, 1 = full lobe Default 0.0f. |
float | m_clearCoatRoughness | 0 = mirror coat (glossy), 1 = matte coat Default 0.0f. |
float | m_anisotropy | -1..1; 0 = isotropic GGX Default 0.0f. |
float | m_subsurfaceStrength | 0 = no SSS, 1 = max wrap Default 0.0f. |
float | m_iridescenceIntensity | 0 = no shift, 1 = full rainbow Fresnel Default 0.0f. |
bool | m_hair | anisotropic Kajiya-Kay strand shading (hair/fur) Default false. |
EShadingModel | m_shadingModel | Default EShadingModel::DefaultLit. |
float | m_transmissionStrength | TwoSidedFoliage back-light bleed, 0..1 Default 0.0f. |
float | m_sheenIntensity | Cloth sheen lobe strength, 0..1 Default 0.0f. |
FEyeSurfaceParams | m_eyeParams | Eye: transported by record, never by a GBuffer lane |
uint32_t | m_textureVersion | Default 0. |
std::string | m_graphShaderId | |
uint64_t | m_graphShaderHash | Default 0. |
bool | m_graphHasWpo | Default false. |
float | m_graphWpoBound | Default 0.0f. |
uint32_t | m_substrateTop | Default 0. |
Vec4 m_graphParams[4] = | ||
std::vector<Vec4> | m_graphParamsExt | Lanes 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_t | m_graphArraySlotMask | Default 0. |
bool | m_terrainSplat | Default false. |
bool | m_foliageWind | Default false. |
bool | m_alphaMasked | Default false. |
bool | m_alphaBlended | Default false. |
float | m_alphaCutoff | Default 0.5f. |
bool | m_doubleSided | Default false. |
Vec2 | m_windDirection | Default Vec2(1.0f, 0.0f). |
float | m_windStrength | Default 0.0f. |
float | m_windSpeed | Default 1.0f. |
bool | m_water | Default false. |
bool | m_reflective | forward transparent reflection opt-in Default false. |
Vec2 | m_waveDirection | Default Vec2(1.0f, 0.0f). |
float | m_waveAmplitude | Default 0.4f. |
float | m_waveLength | Default 24.0f. |
float | m_waveSteepness | Default 0.6f. |
float | m_waveSpeed | Default 4.0f. |
float | m_waveTime | Default 0.0f. |
bool | m_worldGrid | Default false. |
FWorldGridParams | m_worldGridParams | |
std::string | m_physicsMaterial | What 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::string | m_physicsSurface | |
std::string | m_name | |
Material* | m_parent | null = base material Default nullptr. |
MaterialOverride | m_overrideFlags | Which properties are overridden (All = standalone material) Default MaterialOverride::All. |
FMaterialTransparentDepth | m_transparentWrites | |
FMaterialIdentity | m_identity | |
FMaterialStateVersion | m_stateVersion |
Generated from Renderer/Material.h via renderer.json · Nov 4, 2026Version 1.0.0