这篇条目有关 Source引擎。如需详情,点击这里。

VertexLitGeneric

From Valve Developer Community
Jump to navigation Jump to search
English (en)Français (fr)中文 (zh)Translate (Translate)
Info content.png
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.(en)
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是一个顶点着色器(en),可在所有的 起源 起源 游戏中使用。 这是渲染模型(en)最常用的着色器,支持多种特效效果。请勿用于世界几何体,否则可能引发光照错误。

支持参数

基础参数

$basetexture $detail $decaltexture

调整参数

$color2 $basetexturetransform $allowdiffusemodulation $seperatedetailuvs $desaturatewithbasealpha $notint

透明参数

VertexLitGeneric支持多种透明处理方式: $alpha $alphatest $nocull $translucent $additive $distancealpha

光照参数

$bumpmap $lightwarptexture $halflambert $selfillum $emissiveblendenabled $lightmap

反射参数

$envmap $phong $rimlight

特效参数

$compress $stretch $flesh $treeSway

技术调整

$flashlightnolambert $lowqualityflashlightshadows $allowfencerenderstatehack $disablecsmlookup $noshadowpass $nodeferredlight $modelglobalnormal

隐身效果

VertexLitGeneric原生支持军团要塞2 Team Fortress 2 中间谍隐身特效。结合正弦波材质代理(en)可实现完整效果。

$cloakpassenabled $cloakfactor $cloakcolortint $refractamount

注意事项

Mapbase扩展

Mapbase(en)中的VertexLitGeneric材质应使用SDK_VertexLitGeneric着色器。

相关链接