Method OverrideRayGenerationShader
OverrideRayGenerationShader(RayTracingShader, Action<CommandBuffer>)
Use to override the unity camera shader that generate the rays to sample the scene.
Declaration
public void OverrideRayGenerationShader(RayTracingShader shader, Action<CommandBuffer> prepareDispatchRaysCallback)
Parameters
| Type | Name | Description |
|---|---|---|
| RayTracingShader | shader | Shader to use when dispatching ray to render the simulation. |
| Action<CommandBuffer> | prepareDispatchRaysCallback | Callback function to invoke just before dispatching rays. |