This commit is contained in:
AUnicornWithNoLife 2023-02-03 09:24:56 +00:00
parent cecc4137ee
commit 13596d0998

View File

@ -125,8 +125,8 @@ namespace Cupola
float3 i1 = input1[ThreadIds.XY].RGB;
float3 i2 = input2[ThreadIds.XY].RGB;
float i1Intensity = i1.X * i1.Y * i1.Z;
float i2Intensity = i2.X * i2.Y * i2.Z;
float i1Intensity = (i1.X * i1.X) + (i1.Y * i1.Y) + (i1.Z * i1.Z);
float i2Intensity = (i2.X * i2.X) + (i2.Y * i2.Y) + (i2.Z * i2.Z);
if (i1Intensity > i2Intensity)
{