Skip to main content

GraphicsSettingsController

A static class in Root.Township, Alta.Utility.Graphics.

Switches Unity's built-in shader settings between PC and Android. Called from UnityQualitySettingsController.

Fields​

1 private and internal field
MemberWhat it is
private const string CustomDeferredName of the custom deferred shader used on PC, "Hidden/Light Bouncing Model Deferred".

Methods​

MemberWhat it is
static void SetShadersToAndroidVariants()Disables every built-in shader type from deferred shading to lens flare.
static void SetShadersToWindowsVariants()Sets the built-in shaders to Unity's own, then sets deferred shading to the custom light bouncing shader.
1 private and internal method
MemberWhat it is
private static void SetShaderMode(BuiltinShaderType shaderType, BuiltinShaderMode mode)Sets the mode for one built-in shader type, only if it differs.