Version: 2023.2
LanguageEnglish
  • C#

RayTracingGeometryInstanceConfig.material

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public Material material;

Description

The Material the ray tracing instance uses.

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.