$warpindex_diff / $warpindex_spec
Jump to navigation
Jump to search
Bug:The UV is slightly bugged. Lightwarp atlas needs to be set to point sample to avoid issues with interpolation, example can be seen in Black Mesa: Blue Shift.
Bug:Atlas needs to use point sampling otherwise it will have errors caused by bilinear filtering.
$warpindex_diff and $warpindex_spec are material shader parameters for the VertexLitGeneric shader available in
Black Mesa. They are similar to $lightwarptexture, but are 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 being defined in the VMT, they are using special lightwarp_atlas.vtf atlas textures and creating 34 combos depending on textures from the atlas.
Both parameters take integer values 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 are showcased in this video, for $warpindex_spec watch this video.