SetCustomShader(BuiltinShaderType, Shader)
Set custom shader to use instead of a built-in shader.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public static void SetCustomShader(BuiltinShaderType type, Shader shader)
Parameters
Remarks
This is only used when built-in shader is set to BuiltinShaderMode.UseCustom mode; see GraphicsSettings.SetShaderMode.
Additional Resources: GraphicsSettings.GetCustomShader, GraphicsSettings.SetShaderMode, Graphics Settings.