SetBool
Sets the value of a boolean uniform.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetBool(string, bool)
Sets the value of a boolean uniform.
public void SetBool(string name, bool val)
Parameters
Remarks
The value specified as argument can be used only by the shaders defined inside the .raytrace file associated with the RayTracingShader.
SetBool(int, bool)
Sets the value of a boolean uniform.
public void SetBool(int nameID, bool val)
Parameters
Remarks
The value specified as argument can be used only by the shaders defined inside the .raytrace file associated with the RayTracingShader.