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

$detail

From Valve Developer Community
< Zh
Revision as of 21:46, 28 January 2025 by MoRanYue (talk | contribs) (deepseek translation)
Jump to navigation Jump to search
English (en)Français (fr)中文 (zh)Translate (Translate)
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 complies with the alternate languages guide.(en)

edit
应用细节贴图(noise_detail_01)及其在材质(brickwall031a)上的效果。

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

Icon-Bug.png错误: $detail 贴图与以下参数存在兼容性问题:   [todo tested in ?]
Note.png注意:
待完善:  记录其他Source分支中的兼容性问题。
证实:异形丛生中无法使用的功能,通常也无法在求生之路中使用,反之亦然。建议进行实际验证。
Icon-Bug.png错误:异形丛生中同时使用$detail$blendmodulatetexture会导致图形问题(表面条纹),仅在反恐精英:全球攻势Garry's Mod中正常。  [todo tested in ?]

语法

$detail <texture>

通常需同时使用至少$detailscale参数(见下文)。

参数与效果

$detailtexturetransform

$detailscale

$detailblendfactor

$detailblendmode $detailtint

$detailframe $detail_alpha_mask_base_texture

反恐精英:全球攻势 WorldVertexTransition 参数

证实:这些参数是否仅限于反恐精英:全球攻势,还是适用于所有CS:GO 引擎分支分支游戏?

$detail2

$detailscale2 $detailblendfactor2 $detailframe2 $detailtint2

反恐精英:全球攻势传送门2 SolidEnergy 参数

待完善: 验证传送门2中的信息准确性
证实:SolidEnergy是否存在于CS:GO 引擎分支分支游戏中?
Note.png注意:$detail1tint和$detail2tint在此着色器中不存在,列表中已作刻意省略!
Icon-Important.png重要:$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\detailash001adetail\detaildirt001a两个贴图曾用于"泄露版"半衰期2 半衰期2半衰期2:第一章 半衰期2:第一章的以下材质:

半衰期2:第一章 半衰期2:第一章材质Concrete/concretefloor009a参数:

$detail detail/detaildirt001a
$detailscale 0.27

半衰期2:第一章 半衰期2:第一章材质Metal/metalfloor005a参数:

$detail detail/detailash001a
$detailscale 0.50

另见

使用细节贴图隐藏重复平铺 - 如何通过$detail减少贴图重复感