You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user