$lumblendfactor2

From Valve Developer Community
Revision as of 19:50, 27 January 2014 by Roye (talk | contribs) (Created page with "'''$lumblendfactor2''', '''$lumblendfactor3''', & '''$lumblendfactor4''' allow you to choose which luminance value to use for blending in Lightmapped_4WayBlend materials. T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$lumblendfactor2, $lumblendfactor3, & $lumblendfactor4 allow you to choose which luminance value to use for blending in Lightmapped_4WayBlend materials.

This is choosing between the luminance of the given layer and the inverse of the blended luminance of the layers below it using a lerp.

lerp( 1 - blended_lum_of_layers_below, lum_of_current_layer, lumblendfactor )