Default.MaterialUnlit

static Material MaterialUnlit{ get set }

Description

The default unlit material! This is used by StereoKit any time a mesh or model needs to be rendered with an unlit surface. Its shader may change based on system performance characteristics, so it can be great to copy this one when creating your own materials! Or if you want to override StereoKit’s default unlit behavior, here’s where you do it!

Examples

matUnlit = Material.Unlit.Copy();
matUnlit[MatParamName.DiffuseTex] = Tex.FromFile("floor.png");

Unlit material example




Found an issue with these docs, or have some additional questions? Create an Issue on Github!