Materials
A Kolpa material is a .mat file: plain INI text with three blocks. The engine loads it at runtime and the Material Editor (Shift+4) is the usual way to edit it.
Kolpa does not import Blender shader graphs. You rebuild look with Kolpa shader types, texture slots, and uniforms.
File layout
Section titled “File layout”| Section | Holds |
|---|---|
[general] |
Shader type, cull mode, shadow/SSR flags, surface_type |
[textures] |
Paths to u_albedo_map, u_normal_map, u_rma_map, and other maps |
[uniforms] |
Floats, colors, toggles (u_use_albedo_map, u_map_tiling, emissive nits, and similar) |
Example shipped with the demos: assets/materials/demo_content/rocks/rock_small.mat.
Paths inside a .mat are usually relative to assets/ or ../assets/textures/....
Shared vs unique
Section titled “Shared vs unique”| Mode | Behavior |
|---|---|
| Shared | Mesh slot points at materials/foo.mat. One file, many GameObjects. |
| Unique | Unique Material on the Mesh component. Per-entity copy. Slot path browse is disabled. |
Save As in the Material Editor writes a new file. Load replaces the editor selection. Editing a shared file without Save As changes every entity that uses that path after reload.
Copy demo materials into assets/materials/<your_game>/ instead of editing package demos in place.
Shader types
Section titled “Shader types”Pick Type in the Material Editor Shading section:
| Type | Use |
|---|---|
| Opaque | Default PBR surfaces |
| Opaque 4x Blend | Vertex-color terrain splats (four paint layers) |
| Foliage | Grass cards, alpha-masked vegetation |
| Translucent | Glass, fades, lit sheets with transparency |
| Water | Surfaces with Gerstner waves, foam, caustics |
| Unlit | Signs, UI-style quads, absolute nits |
| Blockout | Greybox, triplanar projection |
Unique material copies cannot change Type after the copy is created. Set type before you rely on per-instance overrides.
Contact Type
Section titled “Contact Type”Contact Type maps to footstep and surface audio. Names come from assets/config/surface_types.ini. Empty means Default.
Opaque 4x Blend exposes one contact type per vertex-color layer (default, R, G, B).
Workflow
Section titled “Workflow”- Duplicate a nearby demo
.mator New Material in the Material Editor. - Assign texture paths and tune uniforms.
- Save As under
assets/materials/(or your own tree underassets/). - Assign on the Mesh component (or open from the slot edit button).
- Debug -> Reload Assets (
Shift+R) if you edited the file on disk outside the editor.
Panel-by-panel detail is in Material Editor.
Continue reading
Section titled “Continue reading”Previous: Meshes: slots and unique materials.
Next: Material Editor: sections, type visibility, and recipes.
