Get rid of white/max reflectivity bins due to unsigned integer underflow

This commit is contained in:
Dan Paulat 2024-12-01 23:12:03 -06:00
parent 5be8d7b7c0
commit e93697b162

View file

@ -16,7 +16,7 @@ layout (location = 0) out vec4 fragColor;
void main() void main()
{ {
float texCoord = float(dataMoment - uDataMomentOffset) / uDataMomentScale; float texCoord = (float(dataMoment) - float(uDataMomentOffset)) / uDataMomentScale;
if (uCFPEnabled && cfpMoment > 8u) if (uCFPEnabled && cfpMoment > 8u)
{ {