Unity Shader - Albedo Color and Transparency 反射率颜色和透明

目录:Unity Shader - 知识点目录(先占位,后续持续更新)
原文:Albedo Color and Transparency
版本:2019.1

Albedo Color and Transparency

A Standard Shader material with default parameters and no values or textures assigned. The Albedo Color parameter is highlighted.
Standard Shader材质的默认参数和一些未设置的数值,纹理。Albedo Color参数图中红色框框着。

Albedo参数控制表面的基础色调。
在这里插入图片描述
albedo数值从黑到白的范围(0.0~1.0)

使用Albedo数值某些情况很有用,但更多是使用Albedo纹理参数。该参数可以表示物体表面的色调。需要注意的是Albedo纹理不应该带有任何的光照,因为场景中凡是得到的物体都会添加上上下文光照。
Two examples of typical Albedo texture maps. On the left is a texture map for a character model, and on the right is a wooden crate. Notice there are no shadows or lighting highlights.

Transparency

透明度

Albedo颜色的alpha通道控制材质的透明度程度。这小过只对材质中的Rendering Mode为透明模式(Transparent、Fade)有效,Opaque模式没有效果。如之前所提,选择正确的透明模式很重要,因为决定是否在完全透明(alpha==0)时保留反射和高光,或否是完全透明淡出不可见。
A range of transparency values from 0 to 1, using the Transparent mode suitable for realistic transparent objects
透明度从0.0~1.0,Transparent适合真实的透明效果对象

当设置了Albedo纹理参数后,你可以以albedo纹理的alpha通道来控制透明度。alpha通导致映射了透明度程度,白色完全不透明(alpha==1),黑色完全透明(alpha==0)。这样你就可以根据需求在材质的纹理中不位置调整是否需要透明效果。
An imported texture with RGB channels and an Alpha Channel. You can click the RGB/A button as shown to toggle which channels of the image you are previewing.
导入了RGB通道与Alpha通道的纹理。点击RGB/A按钮可以切换你想要的显示通道。
The end result, peering through a broken window into a building. The gaps in the glass are totally transparent, while the glass shards are partially transparent and the frame is fully opaque.
最后,镜头注视着透过破烂的窗口看到建筑物内。玻璃裂开的缝隙是完全透明的,边框是完全透明的。

猜你喜欢

转载自blog.csdn.net/linjf520/article/details/91345316