Explorar o código

Fix some issues with the sharpen filter in TAA

Panagiotis Christopoulos Charitos %!s(int64=7) %!d(string=hai) anos
pai
achega
6667506aca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      shaders/TemporalAAResolve.glslp

+ 1 - 1
shaders/TemporalAAResolve.glslp

@@ -57,7 +57,7 @@ Vec3 sharpen()
 #endif
 	near *= 0.5;
 	F32 sharpness = 1.0;
-	return center + (center - near) * sharpness;
+	return center + max(Vec3(0.0), center - near) * sharpness;
 }
 
 void main()