Luminanceof

From Valve Developer Community
Revision as of 13:37, 21 January 2014 by Roye (talk | contribs) (Added images.)
Jump to navigation Jump to search

The luminance of the texture is calculated using this formula:

dot( texture.rgb, float3( 0.2125, 0.7154, 0.0721 ) )

The result is a value from 0.0 to 1.0.

Source Color Texture
Result of luminanceof()