UnlitGeneric
< Zh
Jump to navigation
Jump to search
This page is Machine translated
It is not recommended to use machine translation without any corrections.
If the article is not corrected in the long term, it will be removed.
Also, please make sure the article complies with the alternate languages guide.
It is not recommended to use machine translation without any corrections.
If the article is not corrected in the long term, it will be removed.
Also, please make sure the article complies with the alternate languages guide.
UnlitGeneric 是一种不通过标准光照通道渲染漫反射的着色器。通常用于UI图像、纯白或纯黑场景,也适用于使用软件光照的情况(如细节道具)。
支持参数
基础参数
定义漫反射纹理。
将表面属性与物理属性集关联。
调整参数
独立缩放反照率的红、绿、蓝通道。
透明参数
使用遮罩实现二值化透明度检测。
启用材质半透明效果。
在位移表面上启用逐顶点透明度
纹理组织
在Hammer纹理浏览器中隐藏该材质。
用于在Hammer中混合纹理预览。
效果参数
扩展参数
允许玩家手电筒照亮该材质。
可能用于允许该贴花投射阴影。
例如在L4D2的 decals/detail/ruraldetailsprites.vmt 中使用
例如在L4D2的 decals/detail/ruraldetailsprites.vmt 中使用
待完善: 需确认
注意事项
投影纹理错误
若在天空盒上使用UnlitGeneric着色器,可能出现视觉错误。特别是当投影纹理照射到使用该着色器的天空盒附近时,天空盒可能无视周围几何体并穿透墙体显示。
解决方案:确保场景中存在sky_camera实体,通常放置在地图外部的独立天空盒中。
建议改用专用着色器Sky。
模型应用
在模型上使用此着色器时,必须指定$model 1以避免错误。
Mapbase扩展
Mapbase中的无光照材质应使用SDK_UnlitGeneric着色器。