material
The Material the ray tracing instance uses.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public Material material { readonly get; set; }
Remarks
This value is optional. If you use ray tracing shaders and don't set a Material, the GPU doesn't execute any code when rays hit the geometry associated with this ray tracing instance.