$texture2 lumstart: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "'''$texture2_lumstart''' & '''$texture2_lumend''' allows you to adjust the luminance range used to modulate the blending in Lightmapped_4WayBlend materials. The luminance o...")
 
(Merge with Lightmapped_4WayBlend)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''$texture2_lumstart''' & '''$texture2_lumend''' allows you to adjust the luminance range used to modulate the blending in [[Lightmapped_4WayBlend]] materials.
#REDIRECT [[Lightmapped_4WayBlend]]
 
The luminance of the texture is calculated using <code>dot(texture.rgb, float3(0.2125, 0.7154, 0.0721))</code> in the shader.
 
A [http://en.wikipedia.org/wiki/Smoothstep smoothstep] operation is performed on the luminance of the texture, like so: <code>smoothstep(lumstart, lumend, luminance)</code>.

Latest revision as of 14:34, 11 July 2018