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

RayTracingShader.maxRecursionDepth

切换到手册
public float maxRecursionDepth ;

描述

The maximum number of ray bounces this shader can trace (Read Only).

This value can be set in a .raytrace file using #pragma max_recursion_depth followed by a positive number.

单独射线生成的递归深度为 0。简单阴影测试(如在生成射线中,然后朝着光源反射一次)的递归深度为 1,依此类推。