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

内置着色器指南之标准着色器家族:漫反射细节着色器

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

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

跳转到指定楼层
楼主
发表于 2013-2-20 17:13:48 |只看该作者 |倒序浏览
Diffuse Detail Properties 漫反射细节属性This shader is a version of the regular Diffuse shader with additional data. It allows you to define a second "Detail" texture that will gradually appear as the camera gets closer to it. It can be used on terrain, for example. You can use a base low-resolution texture and stretch it over the entire terrain. When the camera gets close the low-resolution texture will get blurry, and we don't want that. To avoid this effect, create a generic Detail texture that will be tiled over the terrain. This way, when the camera gets close, the additional details appear and the blurry effect is avoided.这个着色器是标准“漫反射着色器”带有附件数据的版本。这可以让你定义第二层细节纹理,在相机接近是逐渐显示出来。可以用于地形,例如,可以使用一个基本的低分辨率纹理来覆盖整个地形。当相机靠近低分辨率纹理时,将变的模糊不清,我们并不希望这样。为了避免这种效果,创建细节纹理(Diffuse Detail)平铺在地形上。这种方法,当相机靠近时,将显示细节纹理,并避免模糊效果。The Detail texture is put "on top" of the base texture. Darker colors in the detail texture will darken the main texture and lighter colors will brighten it. Detail texture are usually gray-ish. For more information on effectively creating Detail textures, please view this page.细节纹理是放在基本纹理的上面。暗色的细节纹理将使主纹理变暗,亮色的细节纹理将使主纹理变亮。细节纹理通常是淡灰色的。要了解创建细节纹理的更多信息请阅读这页。
Performance 性能This shader is pixel-lit, and approximately equivalent to the Diffuse shader. It is marginally more expensive due to additional texture.这个着色器是像素光照,大约相当于“漫反射着色器”。附加的细节纹理只是轻微的耗费。 【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

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

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-10 14:33 , Processed in 0.096415 second(s), 31 queries .

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

© 2008-2019 Narkii Inc.

回顶部