Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RayTracingGeometryInstanceConfig.indexBuffer

public GraphicsBuffer indexBuffer;

Description

The index buffer that Unity uses to define the ray tracing geometry instance.

You can use a common index buffer and vertex buffer to define multiple geometry instances with different properties (for example different materials).

Use GraphicsBuffer.Target.Index | GraphicsBuffer.Target.Raw for the Target parameter when creating the index buffer from scripts.