Эта статья документации для всего, что использует платформу Source. Нажмите для получения дополнительной информации.

Ru/LightmappedGeneric: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 9: Line 9:


=== Базовые ===
=== Базовые ===
{{MatParam|$basetexture|texture|Определяет основную текстуру.}}
{{MatParamDef|$basetexture|texture|Определяет основную текстуру.}}
{{MatParam|$decal|bool|Обозначает материал как декаль.}}
{{MatParamDef|$decal|bool|Обозначает материал как декаль.}}
{{MatParam|$detail|texture|Определяет текстуру деталей.}}
{{MatParamDef|$detail|texture|Определяет текстуру деталей.}}
{{MatParam|$surfaceprop|string|Связывает текстуру с набором физических свойств.}}
{{MatParamDef|$surfaceprop|string|Связывает текстуру с набором физических свойств.}}


=== Корректировка ===
=== Корректировка ===
{{MatParam|$basetexturetransform|matrix| Transforms the texture before use in the material. This does not affect [[lightmap]]s on the surface. }}
{{MatParamDef|$basetexturetransform|matrix| Transforms the texture before use in the material. This does not affect [[lightmap]]s on the surface. }}
{{MatParam|$color|RGB matrix|Независимо добавляет красный, зеленый и синий каналы к основной текстуре.}}
{{MatParamDef|$color|RGB matrix|Независимо добавляет красный, зеленый и синий каналы к основной текстуре.}}
{{MatParam|$decalscale|float|Same as a brush face's texture scale value: the number of [[unit|units]] that each [[texel]] covers. Normally 0.25 or lower. }}
{{MatParamDef|$decalscale|float|Same as a brush face's texture scale value: the number of [[unit|units]] that each [[texel]] covers. Normally 0.25 or lower. }}
{{MatParam|$detailscale|float|Fits the detail texture onto the material the given number of times (default {{=}} 4). Generally used instead of {{mono|$detailtexturetransform}} with a value of around 7 or 8 for a 128px detail texture. To independently scale the X and Y coordinates, place your values in brackets: {{mono|$detailscale "[ 4 8 ]"}}}}
{{MatParamDef|$detailscale|float|Fits the detail texture onto the material the given number of times (default {{=}} 4). Generally used instead of {{mono|$detailtexturetransform}} with a value of around 7 or 8 for a 128px detail texture. To independently scale the X and Y coordinates, place your values in brackets: {{mono|$detailscale "[ 4 8 ]"}}}}
{{MatParam|$detailblendfactor|normal|Controls the amount that the detail texture affects the base texture. The precise use of this depends on the blend factor; in most cases it acts similarly to [[$alpha]]. A value of 0 usually makes the detail texture have no effect, whilst a value of 1 applies the full effect.}}
{{MatParamDef|$detailblendfactor|normal|Controls the amount that the detail texture affects the base texture. The precise use of this depends on the blend factor; in most cases it acts similarly to [[$alpha]]. A value of 0 usually makes the detail texture have no effect, whilst a value of 1 applies the full effect.}}
{{MatParam|$detailblendmode|int|How to combine the detail material with the albedo.}}
{{MatParamDef|$detailblendmode|int|How to combine the detail material with the albedo.}}
{{MatParam|$modelmaterial|material|A separate [[VertexLitGeneric]] material to that will replace this one if the decal hits a [[Model|model]]. }}
{{MatParamDef|$modelmaterial|material|A separate [[VertexLitGeneric]] material to that will replace this one if the decal hits a [[Model|model]]. }}
{{MatParam|$pointsamplemagfilter|bool|only={{csgo}}{{jbep3}}|Отключает фильтрацию текстур.}}
{{MatParamDef|$pointsamplemagfilter|bool|only={{csgo}}{{jbep3}}|Отключает фильтрацию текстур.}}
{{MatParam|$seamless_scale|since={{src07}}|float|Отвечает за устранение растяжения текстуры на дисплесментах.}}
{{MatParamDef|$seamless_scale|since={{src07}}|float|Отвечает за устранение растяжения текстуры на дисплесментах.}}


=== Прозрачность ===
=== Прозрачность ===
{{MatParam|$alpha|float|Изменяет непрозрачность всего материала.
{{MatParamDef|$alpha|float|Изменяет непрозрачность всего материала.
{{modernImportant|Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}
{{modernImportant|Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}
{{MatParam|$alphatest|bool|Определяет маску, используемую для определения двоичной непрозрачности.}}
{{MatParamDef|$alphatest|bool|Определяет маску, используемую для определения двоичной непрозрачности.}}
{{MatParam|$distancealpha|since={{src07}}|bool|Векторно-подобная фильтрация краев.}}
{{MatParamDef|$distancealpha|since={{src07}}|bool|Векторно-подобная фильтрация краев.}}
{{MatParam|$nocull|bool|Включает отобраение задней части поверхности.}}
{{MatParamDef|$nocull|bool|Включает отобраение задней части поверхности.}}
{{MatParam|$translucent|bool|Указывает на то, что материал должен быть частично прозрачным.
{{MatParamDef|$translucent|bool|Указывает на то, что материал должен быть частично прозрачным.
{{modernImportant|Может привести result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}
{{modernImportant|Может привести result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}


=== Освещение ===
=== Освещение ===
{{MatParam|$bumpmap|texture|Определяет текстуру, которая будет предоставлять информацию о трехмерном освещении для материала.}}
{{MatParamDef|$bumpmap|texture|Определяет текстуру, которая будет предоставлять информацию о трехмерном освещении для материала.}}
{{MatParam|$blendmodulatetexture|since={{src06}}|texture|Control sharpness and bias of blend. See [[Blendmodulate]]}}
{{MatParamDef|$blendmodulatetexture|since={{src06}}|texture|Control sharpness and bias of blend. See [[Blendmodulate]]}}
{{MatParam|$lightwarptexture|since={{src06}}|texture|По-тексельная модификация цвета с помощью текстуры освещения.  
{{MatParamDef|$lightwarptexture|since={{src06}}|texture|По-тексельная модификация цвета с помощью текстуры освещения.  
{{Note|Does not appear to be featured on {{ent|LightmappedGeneric}} in {{csgobranch|4}}.}}}}
{{Note|Does not appear to be featured on {{ent|LightmappedGeneric}} in {{csgobranch|4}}.}}}}
{{MatParam|$selfillum|bool|Определяет, является ли поверхность самосветящейся независимо от освещения окружающей среды.}}
{{MatParamDef|$selfillum|bool|Определяет, является ли поверхность самосветящейся независимо от освещения окружающей среды.}}
{{MatParam|$ssbump|since={{src07}}|bool|Помечает текстуру {{ent|$bumpmap}} как самозатеняющуюся карту нормалей.}}
{{MatParamDef|$ssbump|since={{src07}}|bool|Помечает текстуру {{ent|$bumpmap}} как самозатеняющуюся карту нормалей.}}


=== Отражения ===
=== Отражения ===
{{MatParam|$envmap|cubemap|Определяет зеркальные отражения.}}
{{MatParamDef|$envmap|cubemap|Определяет зеркальные отражения.}}
{{MatParam|$phong|since={{csgo}}|also={{GMOD}}{{mapbase}}|bool|Определяет диффузные отражения.
{{MatParamDef|$phong|since={{csgo}}|also={{GMOD}}{{mapbase}}|bool|Определяет диффузные отражения.
{{Note|Phong отражается только от энтити {{L|env_cascade_light}}.}}
{{Note|Phong отражается только от энтити {{L|env_cascade_light}}.}}
:{{todo|Есть ли отражения от других источников света?}}
:{{todo|Есть ли отражения от других источников света?}}
{{warning|Стандартный цвет phong всегда белый и не зависит от цвета {{L|light_environment}} или {{L|env_cascade_light}}.}}
{{warning|Стандартный цвет phong всегда белый и не зависит от цвета {{L|light_environment}} или {{L|env_cascade_light}}.}}
{{bug|Карта нормалей не влияет на отражения phong, если в материале пустой $envmap, или если вы не назначили ни одной грани браша на энтити {{L|env_cubemap}}.}}}}
{{bug|Карта нормалей не влияет на отражения phong, если в материале пустой $envmap, или если вы не назначили ни одной грани браша на энтити {{L|env_cubemap}}.}}}}
{{MatParam|$phong_exp|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}
{{MatParamDef|$phong_exp|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}
{{MatParam|$phong_exp2|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}
{{MatParamDef|$phong_exp2|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}


==={{portal2}}Paint===
==={{portal2}}Paint===
{{MatParam|$paintsplatnormalmap|texture|The paint splat normal map to use when paint is applied to the material. Defaults to <code>paint/splatnormal_default</code> if not specified.}}
{{MatParamDef|$paintsplatnormalmap|texture|The paint splat normal map to use when paint is applied to the material. Defaults to <code>paint/splatnormal_default</code> if not specified.}}
{{MatParam|$paintsplatbubblelayout|texture|The layout texture which defines the distribution of bubbles in the paint. Defaults to <code>paint/bubblelayout</code> if not specified.}}
{{MatParamDef|$paintsplatbubblelayout|texture|The layout texture which defines the distribution of bubbles in the paint. Defaults to <code>paint/bubblelayout</code> if not specified.}}
{{MatParam|$paintsplatbubble|texture|The normal mapped texture of a single bubble. Defaults to <code>paint/bubble</code> if not specified.}}
{{MatParamDef|$paintsplatbubble|texture|The normal mapped texture of a single bubble. Defaults to <code>paint/bubble</code> if not specified.}}
{{MatParam|$paintenvmap|texture|The environment map reflected in the paint. Defaults to <code>paint/paint_envmap_hdr</code> if not specified.}}
{{MatParamDef|$paintenvmap|texture|The environment map reflected in the paint. Defaults to <code>paint/paint_envmap_hdr</code> if not specified.}}


=== Сортировка текстур ===
=== Сортировка текстур ===
{{MatParam|%keywords|bool|Sets a keyword filter that can be filtered in hammer for easier texture finding.}}
{{MatParamDef|%keywords|bool|Sets a keyword filter that can be filtered in hammer for easier texture finding.}}
{{MatParam|%notooltexture|bool|Hides the material from Hammer's texture browser.{{warning|Не работает в {{hammer++|4.1}}.}} }}
{{MatParamDef|%notooltexture|bool|Hides the material from Hammer's texture browser.{{warning|Не работает в {{hammer++|4.1}}.}} }}
{{MatParam|%tooltexture|texture|Используется для предпросмотра blend текстуры в [[Hammer]].}}
{{MatParamDef|%tooltexture|texture|Используется для предпросмотра blend текстуры в [[Hammer]].}}


=== Эффекты ===
=== Эффекты ===
{{MatParam|$nofog|bool|Предотвращает перекрытие материала туманом.}}
{{MatParamDef|$nofog|bool|Предотвращает перекрытие материала туманом.}}


== Предупреждения ==
== Предупреждения ==

Latest revision as of 11:50, 23 August 2025

English (en)Français (fr)Русский (ru)Translate (Translate)
Info content.png
This translated page needs to be updated.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.(en)

LightmappedGeneric - это пиксельный шейдер(en), доступно для всех игр на движке Source Source. Это отттенение чаще всего используется для отображения элементов карты и деформированных повехностей к которым применяется карта освещения(en).

Только некоторые игры, такие как Team Fortress 2, поддерживают это оттенение для использования на моделях. Модели не могут использовать это оттенение - карты освещения для моделей(en) используются с VertexLitGeneric оттенением.

Поддерживаемые параметры

Базовые

Определяет основную текстуру.
Обозначает материал как декаль.
Определяет текстуру деталей.
Связывает текстуру с набором физических свойств.

Корректировка

Transforms the texture before use in the material. This does not affect lightmaps on the surface.
Независимо добавляет красный, зеленый и синий каналы к основной текстуре.
Same as a brush face's texture scale value: the number of units that each texel covers. Normally 0.25 or lower.
Fits the detail texture onto the material the given number of times (default = 4). Generally used instead of $detailtexturetransform with a value of around 7 or 8 for a 128px detail texture. To independently scale the X and Y coordinates, place your values in brackets: $detailscale "[ 4 8 ]"
Controls the amount that the detail texture affects the base texture. The precise use of this depends on the blend factor; in most cases it acts similarly to $alpha. A value of 0 usually makes the detail texture have no effect, whilst a value of 1 applies the full effect.
How to combine the detail material with the albedo.
A separate VertexLitGeneric material to that will replace this one if the decal hits a model.
Отключает фильтрацию текстур.
$seamless_scale(en) <число с плавающей запятой(en)> (Во всех играх начиная с Source 2007)
Отвечает за устранение растяжения текстуры на дисплесментах.

Прозрачность

Изменяет непрозрачность всего материала.
Icon-Important.pngВажно:Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!
Определяет маску, используемую для определения двоичной непрозрачности.
$distancealpha(en) <булева переменная(en)> (Во всех играх начиная с Source 2007)
Векторно-подобная фильтрация краев.
Включает отобраение задней части поверхности.
Указывает на то, что материал должен быть частично прозрачным.
Icon-Important.pngВажно:Может привести result in alpha sorting issues if brush is flagged as detail or tied to an entity!

Освещение

Определяет текстуру, которая будет предоставлять информацию о трехмерном освещении для материала.
$blendmodulatetexture(en) <texture(en)> (Во всех играх начиная с Source 2006)
Control sharpness and bias of blend. See Blendmodulate
$lightwarptexture(en) <texture(en)> (Во всех играх начиная с Source 2006)
По-тексельная модификация цвета с помощью текстуры освещения.
Note.pngПримечание:Does not appear to be featured on LightmappedGeneric in CS:GO engine branch CS:GO engine branch.
Определяет, является ли поверхность самосветящейся независимо от освещения окружающей среды.
$ssbump(en) <булева переменная(en)> (Во всех играх начиная с Source 2007)
Помечает текстуру $bumpmap как самозатеняющуюся карту нормалей.

Отражения

Определяет зеркальные отражения.
$phong(en) <булева переменная(en)> (Во всех играх начиная с Counter-Strike: Global Offensive) (также в Garry's ModMapbase)
Определяет диффузные отражения.
Note.pngПримечание:Phong отражается только от энтити env_cascade_light(en).
Нужно сделать: Есть ли отражения от других источников света?
Warning.pngПредупреждение:Стандартный цвет phong всегда белый и не зависит от цвета light_environment(en) или env_cascade_light(en).
Icon-Bug.pngБаг:Карта нормалей не влияет на отражения phong, если в материале пустой $envmap, или если вы не назначили ни одной грани браша на энтити env_cubemap(en).  [нужно проверить в ?]
Подтвердить:Is this for LW's Blinn–Phong reflections?
Подтвердить:Is this for LW's Blinn–Phong reflections?

Portal 2Paint

The paint splat normal map to use when paint is applied to the material. Defaults to paint/splatnormal_default if not specified.
The layout texture which defines the distribution of bubbles in the paint. Defaults to paint/bubblelayout if not specified.
The normal mapped texture of a single bubble. Defaults to paint/bubble if not specified.
The environment map reflected in the paint. Defaults to paint/paint_envmap_hdr if not specified.

Сортировка текстур

Sets a keyword filter that can be filtered in hammer for easier texture finding.
Hides the material from Hammer's texture browser.
Warning.pngПредупреждение:Не работает в Hammer++ Hammer++.
Используется для предпросмотра blend текстуры в Hammer.

Эффекты

Предотвращает перекрытие материала туманом.

Предупреждения

Mapbase

LightmappedGeneric материалы в Mapbase(en) должны иметь шейдер SDK_LightmappedGeneric.


Смотреть также

  • WorldVertexTransition, оттенение, используемое для деформированных поверхностях для смешивания двух материалов.
  • LightmappedTwoTexture, оттенение для элементов карты, которое накладывает одну текстуру поверх другой текстуры.
  • Lightmapped_4WayBlend, оттенение, используемое на деформированных поверхностях для смешивания до четырех материалов.