camera.setreplacementshader 设置替换shader

2015-1-4 07:47| 发布者: 杨炎| 查看: 3085| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: camera.setreplacementshader 设置替换shaderfunctionsetreplacementshader(shader:shader,replacementtag: string) : voiddescription描述make the camera render with shader replacement.使相机渲染用shader替换 ...

camera.setreplacementshader 设置替换shader

functionsetreplacementshader(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. callresetreplacementshaderto reset it back to normal rendering.

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

参见:resetreplacementshader,renderwithshader.

相关阅读

文章点评
相关文章