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使用Cheap二值化透明遮罩。
$additive类似$translucent但采用加法混合,始终呈现更亮效果。
$distancealpha实现矢量式边缘过滤。
光照参数
通过一维扭曲纹理实现逐像素颜色调整。
启用半兰伯特着色。
启用自发光效果(不受环境光照影响)。
反射参数
特效参数
技术调整
强制低质量手电筒/投影纹理阴影以提升性能。
针对级联阴影映射的栅栏渲染修正。
禁用级联阴影映射查询/过滤,适用于密集植被。
禁用该材质的阴影渲染阶段。
禁用延迟光照输入。
为所有模型顶点使用全局光源方向作为法线。
隐身效果
VertexLitGeneric原生支持 军团要塞2中间谍隐身特效。结合正弦波材质代理可实现完整效果。
 军团要塞2中间谍隐身特效。结合正弦波材质代理可实现完整效果。
启用隐身效果。 警告:在静态道具上启用会导致严重性能损耗,即使未实际使用隐身效果!
警告:在静态道具上启用会导致严重性能损耗,即使未实际使用隐身效果!
 警告:在静态道具上启用会导致严重性能损耗,即使未实际使用隐身效果!
警告:在静态道具上启用会导致严重性能损耗,即使未实际使用隐身效果!0.00 = 完全可见,
1.00 = 完全不可见。
1.00 = 完全不可见。
折射效果染色。默认值"[1 1 1]"。
部分隐身时的折射强度。默认值2。
注意事项
Mapbase扩展
Mapbase中的VertexLitGeneric材质应使用SDK_VertexLitGeneric着色器。
相关链接
- 模型材质指南
- EyeRefract(眼球折射着色器)
- Teeth(牙齿着色器)
































 证实:
 证实:







