Added more fraction for small number un lux/nit meter.

#rb none
[FYI] jeansebastien.guay


#ROBOMERGE-SOURCE: CL 8541750 via CL 8547228
#ROBOMERGE-BOT: (v406-8472469)

[CL 8547283 by sebastien hillaire in Main branch]
This commit is contained in:
sebastien hillaire
2019-09-06 10:44:58 -04:00
parent 7014de4637
commit c3a28bbbfc

View File

@@ -174,29 +174,29 @@ void MainPS(noperspective float4 UVAndScreenPos : TEXCOORD0, float4 SvPosition :
// Luminance
int2 TopLeft = ViewportCenter + int2(11, 11);
if (MaxLuminance < 100.0f)
if (MaxLuminance < 1000.0f)
{
PrintSmallFloat(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxLuminance);
PrintFloat(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxLuminance);
}
else
{
PrintFloatNoFractionLarge(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxLuminance);
}
TopLeft.x += 54;
TopLeft.x += 60;
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _N_);
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _I_);
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _T_);
// Illuminance
TopLeft = ViewportCenter + int2(11, 22);
if (MaxIlluminance < 100.0f)
if (MaxIlluminance < 1000.0f)
{
PrintSmallFloat(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxIlluminance);
PrintFloat(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxIlluminance);
}
else
{
PrintFloatNoFractionLarge(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, MaxIlluminance);
}
TopLeft.x += 54;
TopLeft.x += 60;
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _L_);
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _U_);
PrintCharacter(PixelPos, OutColor.xyz, float3(1, 1, 1), TopLeft, _X_);