API for baking Light Probes
The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.
If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.
Summary
With Unity 6 we introduce a new API for baking Light Probes. Baking no longer relies on the Lightmapping delegates, where the user gets callbacks during the baking process. Instead, the process is very explicit and free of side effects, enabling the user to control how many probes to bake at a time to balance execution time vs memory usage.
User Outcome
We expose a GPU backend focused on high performance and using OpenCL internally. A future backend will be able to use hardware accelerated ray tracing.
We use the APV probe baking editor code as the example for how to use the API.
Documentation is available now: RadeonRaysContext, RadeonRaysProbeIntegrator and RadeonRaysProbePostProcessor.
Note that this API is only available for Light Probes and uses scene based input extraction. Lightmap support and support for procedural geometry is planned for a future release.