Experimental: this API is experimental and might be changed or removed in the future.

RayTracingShader.Dispatch

Cambiar al Manual
public void Dispatch (string rayGenFunctionName, int width, int height, int depth, Camera camera);

Parámetros

rayGenFunctionNameThe function name of this RayTracingShader's raygeneration shader.
widthThe number of rays cast per row of dispatch.
heightThe number of rays cast per height of dispatch.
depthThe number of layers cast, where each layer consists of a number of rays given by width * height.
cameraAn optional parameter used to setup camera related shader parameters (e.g. unity_WorldToCamera, unity_CameraToWorld, unity_CameraProjection, etc.). These values are visible globally in all ray tracing shader types.

Descripción

Dispatches this RayTracingShader.

Calls the raygeneration shader for the given dimensions, and recurse as necessary up to the specified RayTracingShader.maxRecursionDepth.