This is a guide on how to use the material manager which primarily exists to control parameters for custom shaders.
The Material Manager is a singleton class with exclusively static methods. While the instance is publicly accessible you should not need to interact with it and exists solely for debug purposes.
These effects are applied to all users of the specified material.
Desaturate
shader. This was created to be used in dialog scenes and should be applied to the material member of image components. The static method SetSaturation(float saturation)
can be used to set the saturation of the displayed image where 1.0
is full color and 0.0
is grayscale.This section is mainly for development documentation purposes and is not likely to be relevant to those using the material manager.
Desaturate
: a simple shader that sets a texture’s saturation _MainTex
to _Saturation
percent.Styleize
: uses edge detection on the color, depth, and normal channels to create outlines. Implemented as a full screen shader.