UseCustom
Use custom shader instead of built-in one.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
UseCustom = 2
Remarks
This is useful for implementing custom functionality. For example, by default deferred shading does shading calculations that match the Standard shader lighting model. But if you'd want to use a different BRDF, or use a custom deferred G-buffer layout, then you'd need to override BuiltinShaderType.DeferredShading with your own custom shader.
Additional Resources: GraphicsSettings.SetShaderMode, SetCustomMode, BuiltinShaderType, Graphics Settings.