Camera翻译:Yīm
- actualRenderingPath
- allCameras
- aspect
- backgroundColor
- cameraToWorldMatrix
- clearFlags
- CopyFrom
- cullingMask
- current
- depthTextureMode
- depth
- farClipPlane
- fieldOfView
- layerCullDistances
- main
- nearClipPlane
- OnPostRender
- OnPreCull
- OnPreRender
- OnRenderImage
- OnRenderObject
- OnWillRenderObject
- orthographicSize
- orthographic
- pixelHeight
- pixelRect
- pixelWidth
- projectionMatrix
- rect
- renderingPath
- RenderToCubemap
- RenderWithShader
- Render
- ResetAspect
- ResetProjectionMatrix
- ResetReplacementShader
- ResetWorldToCameraMatrix
- ScreenPointToRay
- ScreenToViewportPoint
- ScreenToWorldPoint
- SetReplacementShader
- targetTexture
- velocity
- ViewportPointToRay
- ViewportToScreenPoint
- ViewportToWorldPoint
- worldToCameraMatrix
- WorldToScreenPoint
- WorldToViewportPoint
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.
最后修改:2011年3月7日 Monday 16:48