查看: 2279|回复: 0
打印 上一主题 下一主题

内置着色器指南之标准着色器家族:顶点光照着色器

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-2-20 17:08:42 |只看该作者 |倒序浏览
Vertex-Lit Properties 顶点光照属性This shader is Vertex-Lit, which is one of the simplest shaders. All lights shining on it are rendered in a single pass and calculated at vertices only.这个Shader是Vertex-Lit,是最简单的Shader之一。所有照射在该物体上的光源通过一次光能传递渲染完成并且只计算顶点光源。Because it is vertex-lit, it won't display any pixel-based rendering effects, such as light cookies, normal mapping, or shadows. This shader is also much more sensitive to tesselation of the models. If you put a point light very close to a cube using this shader, the light will only be calculated at the corners. Pixel-lit shaders are much more effective at creating a nice round highlight, independent of tesselation. If that's an effect you want, you may consider using a pixel-lit shader or increase tesselation of the objects instead.因为是Vertex-Lit,所以不会有任何基于像素渲染的效果,例如:Light Cookies,Normal Mapping和Shadows。这个Shader对模型的细分同样更加敏感,假如在很靠近立方体的地方放置一个点光源,并且应用这个Shader,这个光源只会在此角落进行计算,Pixel-Lit Shader在生成圆形高光上是更加有效的,不依赖于细分。如果上述是想要的效果,可以考虑使用一个Pixel-Lit Shader或者增加物体的细分(增加顶点数量)。
Performance 性能Generally, this shader is very cheap to render. For more details, please view the Shader Peformance page.一般情况下,这个Shader渲染代价是非常小的,更多详细资料请查看Shader Peformance页面。 【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-18 08:21 , Processed in 0.083155 second(s), 34 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部