Material Editor
Give a model a new look as a node graph - its texture, your images, noise, cells, colour and blend nodes - previewed on every node and on a lit ball, then baked into its texture and shine.
The Material Editor (Characters & Animation section) makes a model's look as a node graph, in the style of Unreal's material editor: recolour a creature, rust a sword, freeze an armour, gild a statue. It uses the same canvas as the Blueprint Editor, so the editing controls are the same.
The game draws a model with one texture and one shine, so a material is baked: the colour and shading per pixel into a new texture, and the shine as one value. The result goes into the mod through the Model Replacer's entry for that model.
Making a material
- + Material makes a graph for a model, or double-click a model or equipment model in the Content Browser while the Material Editor is open (with a material open, that retargets it to the new model).
- From template... starts from a working example (below).
Each node shows its output as a small picture. The Details panel has three tabs:
- Material: the model, the bake size, Parameters (numbers and colours used in many places), and Save & Apply, Open in Model Replacer.
- Preview: the result flat, and on a lit ball with its shine.
- Node: the selected node's documentation, settings and unwired inputs.
The Material Output
| Input | Becomes |
|---|---|
| Base Color | The texture's colour. Unwired: the model's own texture. |
| Shading Mask | The texture's alpha, which the game uses as the lit darkening mask (0 as drawn, 1 darkest). Unwired: the model's own. |
| Specular | The shine, 0 to 1 (averaged over the image) |
| Gloss | The highlight's tightness, 1 to 128 (averaged) |
The nodes
Every input takes a number or a colour: a number into a colour is grey, a colour into a number is its luminance.
| Group | Nodes |
|---|---|
| Inputs | Texture Coordinates, Model Texture (the disc texture), Image File (a PNG of the mod, tiled), Color, Scalar, the graph's Parameters |
| Procedural | Noise (layered value noise), Voronoi (distance to the nearest cell point, and a value per cell), Checker, Gradient (horizontal, vertical, radial, diagonal), Stripes. Noise and Voronoi tile seamlessly at whole scales. |
| Math | + - x /, Min, Max, Power, 1 - x, Abs, Saturate, Frac, Sine, Lerp, Clamp, Step, Smooth Step, Remap |
| Color | Split RGBA, Make RGBA, Hue / Saturation / Value, Brightness / Contrast, Desaturate, Luminance, Invert, Posterize, Blend (Normal, Multiply, Screen, Overlay, Add, Subtract, Difference, Darken, Lighten, Soft Light, with opacity) |
| UV | Tiling and Offset, Rotate UV, Distort UV (push the UVs by a noise) |
| Filters | Blur, Sharpen, Edge Detect (on the whole image) |
Bake and apply
Save & Apply bakes the material at the size set in Material (the model's texture size ×1, ×2 or ×4, or a square of 128 to 2048 pixels) and:
- writes
assets/materials/<graph>.png, - sets the model's Model Replacer entry: its texture is that image, and the shine is custom when the Output's Specular is wired or above 0.
Cook the mod to see it in the game. Open in Model Replacer shows it on the model in 3-D, where the replacer's own texture settings (enlarging, cleanup) still apply.
Validate bakes every material of the mod and warns about one with no model.
Templates
| Template | Look |
|---|---|
| Recolour | The model's texture through Hue / Saturation / Value |
| Rusted | Rust-brown where a noise is high, dull |
| Frozen | Pale blue, white cracks along Voronoi cell edges, very shiny |
| Gilded | The texture's shading in gold, a tight highlight |
| Toon | Flat colour bands with dark outlines where the texture changes |
| Camouflage | Two colours in noise blotches, shaded by the texture |
Example A blood-red kobold. Open the kobold, + Material, then wire Model Texture into Hue / Saturation / Value, shift the hue, and wire the result into Base Color. Save & Apply, cook, and every kobold is red.
Limits
Materials are baked, not run as shaders: no normal maps, glowing or animated materials. Graphs are sources
(assets/graphs/<name>.rgraph): a published mod carries the baked texture, not the graph.
