Camera.SetReplacementShader 设置替换Shader

function SetReplacementShader (shader : Shader, replacementTag : string) : void

Description描述

Make the camera render with shader replacement.

使相机渲染用shader替换。

After calling this function, camera will render its view with shader replacement. Call ResetReplacementShader to reset it back to normal rendering.

调用这个函数之后,相机将使用替换的shader来渲染它的视图。调用ResetReplacementShader来重置回普通的渲染。

参见:ResetReplacementShader, RenderWithShader.

Page last updated: 2011-3-7