$detail

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 complies with the alternate languages guide.
$detail
是一个材质着色器 参数,可在所有的 起源 游戏中使用。 指定一个texture,当近距离观察时,Source引擎会根据$detailblendmode通过适当调整albedo的明暗来为材质添加高分辨率细节。您也可以使用全彩色图像(而非灰度图)并通过$detailblendmode 2进行混合。该参数能显著提升纹理的视觉分辨率,在
半衰期2:第二章和
传送门2的白瓷砖表面凹凸效果中被广泛使用。

- 在
的LightmappedGeneric中,无法与$seamless_scale共同使用。
- 在
的VertexLitGeneric中,若使用$bumpmap则无法与$selfillumfresnel共同使用。
- 在
的LightmappedGeneric中,无法与$lightwarptexture共同使用。
注意:
- 在
中,LightmappedGeneric似乎并未将$lightwarptexture作为参数... 因此不存在"无法使用"的情况。
- 在
的VertexLitGeneric中,无法与$desaturatewithbasealpha共同使用。
- 在
中,无法同时使用$blendmodulatetexture 和 $bumpmap
- 在
- 待完善: 记录其他Source分支中的兼容性问题。
错误: 在
中同时使用$detail和$blendmodulatetexture会导致图形问题(表面条纹),仅在
和
中正常。 [todo tested in ?]
语法
$detail <texture>
通常需同时使用至少$detailscale
参数(见下文)。
参数与效果
$detailframe
$detail_alpha_mask_base_texture
WorldVertexTransition 参数
$detailscale2
$detailblendfactor2
$detailframe2
$detailtint2

SolidEnergy 参数




$detail
参数名称相似但功能不同!$detail1
$detail1blendmode
$detail1scale
$detail1blendfactor
$detail1frame
$detail2
$detail2blendmode
$detail2scale
$detail2blendfactor
$detail2frame
Valve预设细节贴图
Valve官方细节贴图(仅OB可用)推荐使用以下预设参数:
$detail detail\noise_detail_01 // 适用于砖墙、混凝土等... $detailscale 7.74 $detailblendfactor 0.8 $detailblendmode 0
$detail detail\metal_detail_01 $detailscale 4.283 $detailblendfactor .65 $detailblendmode 0
$detail detail\rock_detail_01 $detailscale 11 $detailblendfactor 1 $detailblendmode 0
$detail detail\plaster_detail_01 $detailscale 6.783 $detailblendfactor .8 $detailblendmode 0
以下参数来自models\props_forest\LadderWood.vmt,是唯一使用detail\wood_detail_01(1024×1024高分辨率)的官方材质文件,因此$detailscale
较低(除rock_detail_01外):
$detail detail\wood_detail_01 $detailscale 2.563 $detailblendfactor .8 $detailblendmode 0
另有detail\detailash001a和detail\detaildirt001a两个贴图曾用于"泄露版" 半衰期2及
半衰期2:第一章的以下材质:
半衰期2:第一章材质Concrete/concretefloor009a参数:
$detail detail/detaildirt001a $detailscale 0.27
半衰期2:第一章材质Metal/metalfloor005a参数:
$detail detail/detailash001a $detailscale 0.50
另见
使用细节贴图隐藏重复平铺 - 如何通过$detail减少贴图重复感