Raytracing API Out of Experimental in 2023.1

Instancing support for the Raytracing API is now available, allowing to efficiently add large amounts of mesh instances to the Raytracing Acceleration Structure, in order to improve raytracing performance.

RayTracingAccelerationStructure.AddInstances is a counterpart of Graphics.RenderMeshInstanced (used for rasterization pipeline), and will add a Mesh ray tracing instance in the TLAS for each matrix in the array. In the shader, you can use the Instance ID in order to access per-instance data. For more information, including performance testing figures and a reference sample project, please check the following slides.

You can try out Raytracing Instancing, along with other recent Raytracing improvements, in the newly available Unity 2023.1 beta. As part of the beta release, we also have an ongoing sweepstakes that you can check out, for a chance to win an NVIDIA Geforce RTX 3070!

We highly appreciate your feedback and reports, so please keep them coming and let us know if you encounter any issues, or if there are additional improvements you would like to see :slight_smile:

4 Likes