$lightwarptexture
< Zh
Jump to navigation
Jump to search
![Info content.png](/w/images/f/f6/Info_content.png)
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.
![](/w/images/thumb/2/23/Lightwarp_snow.jpg/200px-Lightwarp_snow.jpg)
该技术首次用于
胜利之日:起源的雪地地图,例如Kalt。
![胜利之日:起源](/w/images/thumb/6/65/Dods_icon.png/16px-Dods_icon.png)
$lightwarptexture
(DX9+ SM3)是一个用于着色器 VertexLitGeneric 的材质着色器 参数,可在所有的 起源 游戏,自从
起源2006 以来中使用。 它根据texel的亮度对其进行着色。可以将其视为局部化的颜色校正。
注意事项
![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
- $detailblendmode 5-9不起作用 - 当使用$phong时,5和6会起作用。
- $envmapmask不起作用,除了在
Mapbase中。
- $selfillum_envmapmask_alpha在任何分支中都不起作用。
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![起源2013](/w/images/thumb/1/11/Src13-16px.png/32px-Src13-16px.png)
![CS:GO 引擎分支](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![CS:GO 引擎分支](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
光照扭曲纹理
光照扭曲纹理是一维像素条。暗色像素将使用左侧的颜色着色,亮色像素将使用右侧的颜色着色。50%灰色表示无着色。
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
VTF参数
光照扭曲纹理应使用未压缩的BGR888格式,以避免光照梯度上的颜色带[1],并且应进行UV钳制。
如果使用 VTEX,请使用以下编译参数:
nocompress 1 // 禁用纹理压缩,以防止颜色带 nomip 1 // 禁用mipmaps,在此情况下不需要 nolod 1 // 始终使用此纹理的全分辨率版本(由于本身分辨率较低) clamps 1 // 防止光照极端的色调混合在一起 clampt 1 // 可选? stripalphachannel 1 // 移除不必要的alpha通道(如果存在)
示例
ground/snow_warp.vtf
()
- 这是上面
胜利之日:起源屏幕中使用光照扭曲纹理。它旨在为较暗的雪地添加微妙的蓝色色调,而不影响较亮的区域。
models/player/pyro/pyro_lightwarp.vtf
()
- 这应用于所有
军团要塞2角色,而不仅仅是Pyro。它创建了高对比度的阴影和红色调的终止线,这是游戏模仿的插画艺术的典型特征。
- 海报化(自定义):
- 此自定义扭曲纹理创建了海报化的“线稿”风格。然而,仅启用光照扭曲是不够的:环境光照必须为0以使未照亮区域变黑,并且世界光照必须依赖于观察者以确保阴影始终投射。
- 卡通着色(自定义):
- 卡通着色可以通过用锐利的步骤替换平滑的光照梯度,使物体看起来更卡通化。
$lightwarptexture的其他可能用途包括对比度增强、调整顶点光照阴影过渡、高光软化等。