# .aemat — materials

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

A material source selects a shader and supplies typed parameter values, keywords and texture references. The material document and its shader are separate sources. Saving a material that several sprites share can affect all of its consumers; per-instance overrides are a different scope.

Example: `assets/materials/hero.aemat` can reference a sprite-compatible shader; a camera Custom effect instead needs a postfx shader. Save the corrected source, inspect its current import result and test the actual consumer. Follow [MAT004](/diagnostics.html#MAT004.md) for domain or texture-binding errors. See [Materials and shaders](/render2d/materials.md).
