IN THIS ARTICLE
Diffuse Probe Grid Component
The Diffuse Probe Grid component creates a volume of light probes that provide diffuse global illumination (GI) within the specified area. Each probe in the volume uses real-time ray tracing to capture the irradiance, or surrounding diffuse light environment. Real-time ray tracing casts several hundred rays in different directions around each probe. Each ray has a maximum length of 30 meters. At each point of intersection between the ray and the surrounding geometry, the probe stores lighting information. Then, it creates an irradiance texture out of the ray traced data and applies the texture to each mesh.
Note:You must have a GPU with support for DirectX Shader Model 6.3 or later to use raytracing in the Atom Renderer.
|Bake Textures||Bakes the surrounding diffuse light environment to a texture that’ll be used when Editor Mode or Runtime Mode is set to ||-||-|
Probe spacing is the distance between probes (in meters) along each axis within the volume. Less spacing results in more probes, which increases the fidelity of the GI at the expense of performance and memory. The maximum extents of the space depends on the Box Shape component’s dimension.
|X-Axis||The amount of space between probes along the x-axis. The space must be within the Box Shape component’s dimension along the x-axis.|
|Y-Axis||The amount of space between probes along the y-axis. The space must be within the Box Shape component’s dimension along the y-axis.|
|Z-Axis||The amount of space between probes along the z-axis. The space must be within the Box Shape component’s dimension along the z-axis.|
|Ambient Multiplier||Increases the strength of GI within the volume. It can be used to fine-tune the scene’s lighting or make the GI more visible to debug.|
|View Bias||Fine-tuned adjustment for eliminating visual artifacts that may appear due to the probes’ positions.|
|Normal Bias||Fine-tuned adjustment for the surface-to-light secondary raycast, which is used to determine if the surface point is affected by a direct light. Increasing the normal bias moves the start point of the raycast farther away from the surface, which makes it more likely to be affected by direct light.|
|Editor Mode||Controls whether the Editor uses real-time or baked diffuse GI. |
|Runtime Mode||Controls whether the standalone runtime uses real-time or baked diffuse GI. |
You can adjust how GI is processed in the Editor and the standalone runtime by adjusting the
Editor Mode and
Runtime Mode properties. There are three modes:
Real Time (Ray-Traced): Constantly updates in response to changes in the surrounding geometry and lights. It requires a GPU that is capable of real-time ray tracing using DXR or Vulkan-RT. This mode is best for editing your scene, but it can reduce performance depending on your GPU and the complexity of the meshes in your scene.
Baked: Uses lighting information that was previously captured and stored in textures using the
Bake Texturesbutton. It can significantly improve performance and allow diffuse GI on machines that don’t have a GPU capable of real-time ray tracing.
Auto Select: Determines which mode to use based on the capability of the GPU in your machine. This allows you to provide real-time ray traced diffuse GI on machines that support it, but also allows baked diffuse GI as a fallback.
There are a variety of configuration setups for Editor and runtime:
Editor Real-Time and Runtime Baked: The Editor updates with real-time diffuse GI, while the runtime uses baked diffuse GI for best performance. Note that the textures must be explicitly baked to allow the runtime to operate in
Editor Real-Time and Runtime Auto Select: The Editor uses real-time ray tracing for the best editing experience, while the runtime chooses between real-time ray tracing or baked, depending on the GPU’s capability.
Editor Baked and Runtime Baked: Both the Editor and the runtime use baked diffuse GI for maximum performance. The textures can be explicitly baked at the appropriate time by temporarily switching the Editor Mode to
Real Time (Ray-Traced)and baking the textures.