- 最后登录
- 2018-12-19
- 注册时间
- 2012-8-20
- 阅读权限
- 90
- 积分
- 54706
- 纳金币
- 32328
- 精华
- 41
|
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/ |
|