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

RayTracingShader.SetShaderPass

Cambiar al Manual
public void SetShaderPass (string passName);

Parámetros

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

Descripción

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.