|
|
|
|
|
|
|
|
|
|
float4 result = SAMPLE_TEXTURE2D(_DebugColorPickerTexture, sampler_DebugColorPickerTexture, input.texcoord); |
|
|
|
|
|
|
|
//Decompress value if luxMeter is active |
|
|
|
result.rgb = exp2(result.rgb) - 2; |
|
|
|
result.rgb = result.rgb * LUXMETER_COMPRESSION_RATIO; |
|
|
|
|
|
|
|
if (_FalseColor) |
|
|
|
result.rgb = FasleColorRemap(Luminance(result.rgb), _FalseColorThresholds); |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
float4 mouseResult = SAMPLE_TEXTURE2D(_DebugColorPickerTexture, sampler_DebugColorPickerTexture, mousePixelCoord.zw); |
|
|
|
|
|
|
|
//Decompress value if luxMeter is active |
|
|
|
if (_DebugLightingMode == DEBUGLIGHTINGMODE_LUX_METER) |
|
|
|
mouseResult = mouseResult * LUXMETER_COMPRESSION_RATIO; |
|
|
|
|
|
|
|
|
|
|
|
if (_DebugLightingMode == DEBUGLIGHTINGMODE_LUX_METER) |
|
|
|
mouseResult = exp2(mouseResult) - 2; |
|
|
|
|
|
|
|
result = DisplayPixelInformationAtMousePosition(input, result, mouseResult, mousePixelCoord); |
|
|
|
} |
|
|
|