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.