Method AddInstanceToRAS
AddInstanceToRAS(RayTracingAccelerationStructure, Renderer, HDEffectsParameters, ref bool, ref bool)
Function that adds a renderer to a ray tracing acceleration structure.
Declaration
public static AccelerationStructureStatus AddInstanceToRAS(RayTracingAccelerationStructure targetRTAS, Renderer currentRenderer, HDEffectsParameters effectsParameters, ref bool transformDirty, ref bool materialsDirty)
Parameters
Type | Name | Description |
---|---|---|
RayTracingAccelerationStructure | targetRTAS | Ray Tracing Acceleration structure the renderer should be added to. |
Renderer | currentRenderer | The renderer that should be added to the RTAS. |
HDEffectsParameters | effectsParameters | Structure defining the enabled ray tracing and path tracing effects for a camera. |
bool | transformDirty | Flag that indicates if the renderer's transform has changed. |
bool | materialsDirty | Flag that indicates if any of the renderer's materials have changed. |
Returns
Type | Description |
---|---|
AccelerationStructureStatus |