$warpindex_diff
Jump to navigation
Jump to search
$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.