Skip to main content

MaterialInstance

A class in Root.Township, Alta.Rendering.

Takes a renderer's own material copy (renderer.material) and cleans it up when disposed, so the copy does not leak.

Constructors​

MemberWhat it is
MaterialInstance(Renderer renderer)Creates a MaterialInstance from renderer.

Properties​

MemberWhat it is
Material Material { get; }The renderer's own material copy, made when this object is created.
Renderer Renderer { get; }The renderer the material belongs to.

Methods​

MemberWhat it is
void Dispose()Cleans up the material copy.

Used in​

Members of other types that take, return or hold a MaterialInstance: