$warpindex diff: Difference between revisions
Jump to navigation
Jump to search
Bug:Atlas needs to use point sampling otherwise it will have errors caused by bicubic sampling.
MyGamepedia (talk | contribs) (Created page with "{{DISPLAYTITLE:$warpindex_diff / $warpindex_spec}} thumb|right|The '''models\effects\lightwarp_atlas.vtf''' atlas. {{This is a|material shader parameters for the VertexLitGeneric shader|name=$warpindex_diff|name1=$warpindex_spec|game=Black Mesa}} These are shader parameters similar to $lightwarptexture, but used only by deferred new lights. '''$warpindex_diff''' is used by lighting diffuse, '''$warpindex_spe...") |
MyGamepedia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:$warpindex_diff / $warpindex_spec}} | {{DISPLAYTITLE:$warpindex_diff / $warpindex_spec}} | ||
[[File:Lightwarp atlas.png|thumb|right|The '''models\effects\lightwarp_atlas.vtf''' atlas.]] | [[File:Lightwarp atlas.png|thumb|right|The '''models\effects\lightwarp_atlas.vtf''' atlas.]] | ||
{{This is a|[[material]] [[shader]] parameters for the [[VertexLitGeneric]] shader|name=$warpindex_diff|name1=$warpindex_spec|game=Black Mesa}} These are shader parameters similar to [[$lightwarptexture]], but used only by deferred [[NewLight Point|new lights]]. '''$warpindex_diff''' is used by lighting diffuse, '''$warpindex_spec''' is used by [[$specmap texture|new specular]]. | {{This is a|[[material]] [[shader]] parameters for the [[VertexLitGeneric]] shader|name=$warpindex_diff|name1=$warpindex_spec|game=Black Mesa|notitlechange=1}} These are shader parameters similar to [[$lightwarptexture]], but used only by deferred [[NewLight Point|new lights]]. '''$warpindex_diff''' is used by lighting diffuse, '''$warpindex_spec''' is used by [[$specmap texture|new specular]]. | ||
The key difference is that instead of using defined in [[VMT]] texture, they are using special '''lightwarp_atlas.vtf''' atlas texture and creating 34 combos depending on textures from the atlas. | The key difference is that instead of using defined in [[VMT]] texture, they are using special '''lightwarp_atlas.vtf''' atlas texture and creating 34 combos depending on textures from the atlas. | ||
Revision as of 14:53, 4 November 2025
$warpindex_diff and $warpindex_spec are material shader parameters for the VertexLitGeneric shader available in
Black Mesa. These are shader parameters similar to $lightwarptexture, but used only by deferred new lights. $warpindex_diff is used by lighting diffuse, $warpindex_spec is used by new specular.
The key difference is that instead of using defined in VMT texture, they are using special lightwarp_atlas.vtf atlas texture and creating 34 combos depending on textures from the atlas.
Both parameters takes integer value from -1 to 32, this is how one of the 34 combos can be used. -1 and below means disabled, 32 and above means use 32 value.
All 34 for $warpindex_diff showcased in this video, for $warpindex_spec watch this video.