Renderer
Renderer module API reference: 1 headers · 12 types · 350 symbols.
- Build name
MowoEngine.Renderer- Source
Engine/Source/Runtime/Renderer/Public- Category
- Runtime
- Contents
- 1 headers · 12 types · 350 symbols
Renderer/Material.h
| Kind | Type | Summary |
|---|---|---|
| enum | EShadingModel | Explicit surface shading model (G2). Values are the GBuffer wire IDs (RT3.A bits 5..7) — renumbering breaks every already-rendered frame's decode AND the CPU codec tests. 0 must remain DefaultLit: impostors, decal-neutra |
| struct | FEyeSurfaceParams | Eye's surface parameters. None of them reach the G-Buffer directly — the renderer writes one FSurfaceRecord per drawn Eye material into the frame's surface-parameter buffer and RT3 stores only that record's index, which |
| struct | FWorldGridParams | The world-aligned procedural grid (UE's WorldGridMaterial). It is drawn by the uber GBuffer shader from the pixel's world position and needs no texture and no cooked graph shader, which is why it can be the material ever |
| enum | EMaterialBlendMode | How a TRANSLUCENT surface combines with the scene behind it. Opaque and masked surfaces are expressed by opacity + alphaMasked and never reach here. Values are serialized by index — append only. |
| enum | MaterialOverride | |
| struct | FMaterialIdentity | Process-unique material identity. Copies mint a FRESH id (a copy is a new material object), assignment keeps the target's own — so an id never names two live materials and, unlike the raw address it replaced as the DS-ca |
| struct | FMaterialTransparentDepth | Nesting depth of Material::FTransparentWriteScope. Copying a material never copies an in-flight scope: the scope belongs to the operation running on the ORIGINAL, and a render proxy that inherited a non-zero count would |
| struct | FMaterialStateVersion | Count of surface changes on ONE material object, moved by every setter. The render-proxy cache reuses last frame's snapshot while (identity, version) still match, so a copy that carried the source's count would let a mat |
| 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 C |
| class | Material | An instance can inherit from a parent material and override only specific properties. |
| class | Material::FTransparentWriteScope | Writes that REPRODUCE a material rather than author it — the .mat loader replaying a saved document, the graph compiler folding its result onto the flat fields, a GPU re-resolve rebinding textures — must not read as user |
| struct | FMaterialRenderProxy | Render-thread snapshot of a Material (+ its resolved parent chain), the UE5 FMaterialRenderProxy analog. The game thread builds one per frame; the render thread reads only this copy, never the live Material. Ref-counted |
Free functions
| Signature | Description |
|---|---|
inline MaterialOverride operator|(MaterialOverride a, MaterialOverride b) | |
inline MaterialOverride operator&(MaterialOverride a, MaterialOverride b) | |
inline MaterialOverride& operator|=(MaterialOverride& a, MaterialOverride b) | |
inline MaterialOverride& operator&=(MaterialOverride& a, MaterialOverride b) | |
inline MaterialOverride operator~(MaterialOverride a) |