The luminance of the texture is calculated using this formula:
dot( texture.rgb, float3( 0.2125, 0.7154, 0.0721 ) )