Key rules
First non-empty entry must be type.
Valid presets: standard, unlit, toon, custom.
Custom materials point at WGSL and optional typed params.
glTF sub-assets can be addressed with :mat[index].
Resource Docs
Perro material resources define MeshInstance3D material profiles and can also be authored inline in scenes.
First non-empty entry must be type.
Valid presets: standard, unlit, toon, custom.
Custom materials point at WGSL and optional typed params.
glTF sub-assets can be addressed with :mat[index].
type = "custom"shader_path = "res://shaders/custom.wgsl" params = { glow = 1.25 tint = (1.0, 0.2, 0.4, 1.0)}Use these links for adjacent formats or runtime systems used with .pmat Materials.