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

RayTracingSubMeshFlagsConfig.alphaTestedMaterials

切换到手册
public Experimental.Rendering.RayTracingSubMeshFlags alphaTestedMaterials ;

描述

The corresponding RayTracingSubMeshFlags value for alpha tested Materials.

Using RayTracingSubMeshFlags.Enabled alone will allow the GPU to execute any hit shaders where a ray-geometry hit can be reported based on an alpha test.

See Also: RayTracingAccelerationStructure.CullInstances.