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

RayTracingShader.SetShaderPass

マニュアルに切り替える
public void SetShaderPass (string passName);

パラメーター

passName This 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.