VertexLitGeneric
< 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.
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.
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.
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.
VertexLitGeneric
是一个顶点着色器 ,可在所有的 起源 游戏中使用。 这是渲染模型 最常用的着色器,支持多种特效效果。请勿用于世界几何体,否则可能引发光照错误。
支持参数
基础参数
$basetexture 定义漫反射 纹理。
使用第二UV通道支持高分辨率贴花。
调整参数
颜色染色 效果。
变换$basetexture 的对齐、缩放、旋转和位置。
阻止模型材质被$color2 或
rendercolor
染色。待完善: 确认是否使用texcoord1处理细节 纹理
使用基础alpha通道对基础纹理去色。非零值启用,该值在去色前与alpha通道相乘。
透明参数
VertexLitGeneric支持多种透明处理方式:
$alphatest <布尔值 >
$alphatest 使用Cheap 二值化透明遮罩。
$translucent <布尔值 >
$additive 类似$translucent 但采用加法混合,始终呈现更亮效果。
$distancealpha 实现矢量式边缘过滤。
光照参数
通过一维扭曲纹理 实现逐像素颜色调整。
$halflambert <布尔值 >
启用半兰伯特 着色。
$selfillum <布尔值 >
启用自发光 效果(不受环境光照影响)。
反射参数
特效参数
技术调整
强制低质量手电筒/投影纹理阴影以提升性能。
针对级联阴影映射的栅栏渲染修正。
禁用级联阴影映射查询/过滤,适用于密集植被。
禁用该材质的阴影渲染阶段。
禁用延迟光照输入。
为所有模型顶点使用全局光源方向作为法线。
隐身效果
VertexLitGeneric
原生支持 Team Fortress 2 中间谍隐身特效。结合正弦波材质代理 可实现完整效果。
启用隐身效果。
警告:在静态道具上启用会导致严重性能损耗,即使未实际使用隐身效果!

0.00 = 完全可见,
1.00 = 完全不可见。
1.00 = 完全不可见。
折射效果染色。默认值"[1 1 1]"。
部分隐身时的折射强度。默认值2。
注意事项
Mapbase扩展
Mapbase 中的VertexLitGeneric材质应使用SDK_VertexLitGeneric
着色器。
相关链接
- 模型材质指南
- EyeRefract(眼球折射着色器)
- Teeth(牙齿着色器)