找回密碼
 注冊帳號

掃一掃,訪問微社區

camera.renderwithshader 用shader渲染

2015-1-4 06:27| 發布者: 楊炎| 查看: 3098| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: camera.renderwithshader 用shader渲染functionrenderwithshader(shader:shader,replacementtag: string) : voiddescription描述render the camera with shader replacement.用shader替代渲染相機。this will render ...

camera.renderwithshader 用shader渲染

functionrenderwithshader(shader:shader,replacementtag: string) : void

description描述

render the camera with shader replacement.

用shader替代渲染相機

this will render the camera. it will use the camera's clear flags, target texture and all other settings.

這個將渲染相機,這將使用相機的清除標記,目標設置為其它所有設置。

the camera will not sendonprecull,onprerenderoronpostrenderto attached scripts. image filters will not be rendered either.

這個相機不會發送onprecull,onprerender或onpostrender到附加的腳本圖像濾鏡也不會被渲染

this is used for special effects, e.g. rendering screenspace normal buffer of the whole scene, heat vision and so on. to make use of this feature, usually you create a camera and disable it. then call renderwithshader on it.

這個可用于特效,例如整個場景屏幕空間緩沖,熱效果等等。為了使用這個特性,創建一個相機并禁用它,然后在它上面調用renderwithshader。

參見:setreplacementshader,render.

相關閱讀

文章點評
相關文章
女校游泳队彩金