ソースを参照

Merge pull request #92078 from lawnjelly/increase_tight_cull_epsilon

Tight shadow culling - increase epsilon to prevent flickering
Rémi Verschelde 1 年間 前
コミット
008fd5fee6
1 ファイル変更2 行追加2 行削除
  1. 2 2
      servers/rendering/rendering_light_culler.h

+ 2 - 2
servers/rendering/rendering_light_culler.h

@@ -181,14 +181,14 @@ private:
 		}
 
 		// Prevent divide by zero.
-		if (lc > 0.00001f) {
+		if (lc > 0.001f) {
 			// If the summed length of the smaller two
 			// sides is close to the length of the longest side,
 			// the points are colinear, and the triangle is near degenerate.
 			float ld = ((la + lb) - lc) / lc;
 
 			// ld will be close to zero for colinear tris.
-			return ld < 0.00001f;
+			return ld < 0.001f;
 		}
 
 		// Don't create planes from tiny triangles,