struct
MaterialGraphNode
- Module
- AssetSystem
- Header
#include "AssetSystem/Assets/MaterialGraph.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
uint64_t | id | Default 0. |
MatNodeType | type | Default MatNodeType::ConstScalar. |
Vec2 | position | |
float | scalar | Generic value fields — meaning depends on type. Default 0.0f. |
Vec4 | color | ConstColor / VectorParam value; Output base-color fallback Default Vec4(1.0f, 1.0f, 1.0f, 1.0f). |
Vec2 | panSpeed | Panner Default Vec2(0.05f, 0.0f). |
float | fresnelPower | Fresnel Default 5.0f. |
uint32_t | maskChannel | Mask: 0=R 1=G 2=B 3=A Default 0. |
UUID | texture | TextureSample referenced texture |
std::string | paramName | ScalarParam / VectorParam name |
std::string | paramGroup | A parameter's group (the instance editor and Details file it under that heading) and a scalar's slider range: an instance's value is held inside it. sliderMax <= sliderMin means the range is unset. |
float | sliderMin | Default 0.0f. |
float | sliderMax | Default 0.0f. |
float | outMetallic | Output-node channel fallbacks (used when a slot is unconnected) + flags. Default 0.0f. |
float | outRoughness | Default 0.5f. |
float | outAO | Default 1.0f. |
float | outOpacity | Default 1.0f. |
Vec3 | outEmissive | Default Vec3(0.0f, 0.0f, 0.0f). |
float | outEmissiveStrength | Default 0.0f. |
float | clearCoatIntensity | Default 0.0f. |
float | clearCoatRoughness | Default 0.0f. |
float | anisotropy | Default 0.0f. |
float | displacementMagnitude | Nanite-style displacement on the meshlet path: the material's Height Map moves each vertex along its normal by (center - height) * magnitude in object-space units (the height map's convention is 0 = surface, 1 = deepest, which is why height pushes inward). 0 = off. Default 0.0f. |
float | displacementCenter | Default 0.5f. |
float | subsurface | Default 0.0f. |
float | iridescence | Default 0.0f. |
bool | hair | Default false. |
bool | doubleSided | Default false. |
bool | alphaMasked | Default false. |
bool | worldGrid | The engine world grid replaces the base colour's texture with the world-aligned procedural grid (Material::SetWorldGrid). Default false. |
FWorldGridParams | worldGridParams | |
uint8_t | shadingModel | EShadingModel wire id (G2) Default 0. |
float | transmission | TwoSidedFoliage back-light bleed Default 0.0f. |
Vec3 | eyeIrisTint | Eye (extended shading model 8). Unlike every field above these never become a G-Buffer lane: the renderer routes them into the frame's surface-parameter record that an escaped pixel's RT3 index names, which is the only reason a model needing a per-pixel iris normal could ship at all. They are deliberately NOT part of the emitted source, so retuning an eye never recompiles its shader. Default Vec3(1.0f, 1.0f, 1.0f). |
float | eyeCorneaIoR | Default 1.376f. |
float | eyeCorneaRoughness | Default 0.05f. |
float | eyeIrisDepth | Default 0.004f. |
float | eyeIrisConcavity | Default 0.65f. |
Vec3 | eyeGazeAxis | The per-draw half of the same record: the gaze axis the renderer rotates by each draw's model matrix, plus the iris mask, limbal ring, iris lobe and caustic that ride it. Every default is the inert one from FEyeSurfaceParams, so a graph that authors them and a graph that does not describe the same eye. Default Vec3(0.0f, 0.0f, 1.0f). |
float | eyeIrisConeDegrees | Default 0.0f. |
float | eyeLimbalWidthDegrees | Default 2.0f. |
float | eyeLimbalDarkening | Default 0.0f. |
float | eyeIrisRoughness | Default 0.0f. |
float | eyeCausticStrength | Default 0.0f. |
bool | eyePerDrawAuthored | False until the graph actually carries the six fields above — the state of every graph written before they had pins, and of every graph nobody has touched them on. Those fields were .mdfmat-only for a release, so compiling the defaults over them unconditionally would straighten a hand-authored stare on the next unrelated graph edit; while this is false the compiler leaves the material's own values alone. Default false. |
uint8_t | domain | 0 = Surface, 1 = PostProcess (G6), 2 = Decal (a projector's graph: BaseColor/Opacity/Normal/Metallic/Roughness), 3 = LightFunction (Emissive is the light's filter, evaluated over the projected UV) Default 0. |
float | maxWpo | Authored ceiling on |World Position Offset| in world units (0 = off). Baked into the emitted vertex evaluator as a magnitude clamp — every pass (GBuffer, shadow, velocity, forward, meshlet) evaluates the same clamped offset, so tightening the derived cull bound to min(derived, maxWpo) can never cull geometry the shader still displaces. The one way to re-arm the geometric kills on a graph whose derived bound is the unbounded sentinel. Participates in the shader hash (it changes the emitted code), like every other Output-node constant. Default 0.0f. |
std::string | functionPath | MaterialFunctionCall: the .mmatfunc this call inlines, as the path the function library resolves ("Content/MaterialFunctions/Fresnel.matfunc" for the shipped set, a project-relative path for the project's own). |
bool | boolValue | StaticBool: the switch's default. StaticSwitch: the value used when the Value pin is unwired. Written only when true so untouched files stay byte-identical. Default false. |
bool | scalarPin | FunctionInput: a float-typed pin (one default field, a Float pin colour) rather than a float4 one. Nothing on the wire changes — every value is a float4 — it only decides what the editor shows and how the caller's pin is coloured. Default false. |
Generated from AssetSystem/Assets/MaterialGraph.h via assetsystem.json · Nov 4, 2026Version 1.0.0