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

RayTracingShader.SetShaderPass

매뉴얼로 전환
public void SetShaderPass (string passName);

파라미터

passNameThis matches the Name given to the chosen Pass of all ShaderLab Shaders in the Scene.

설명

Selects which pass to use when intersecting materials in the Scene.

This name is specified in the ShaderLab shaders used in Materials applied to Renderers in the Scene, not in the RayTracingShader itself. Shader passes authored for ray tracing require specialized syntax, so you must call SetShaderPass before every dispatch of a RayTracingShader.