Explorar o código

tweak Camera.updateClip

David Sehnal %!s(int64=4) %!d(string=hai) anos
pai
achega
2818102b8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-canvas3d/camera.ts

+ 1 - 1
src/mol-canvas3d/camera.ts

@@ -320,7 +320,7 @@ function updateClip(camera: Camera) {
 
     if (mode === 'perspective') {
         // set at least to 5 to avoid slow sphere impostor rendering
-        near = Math.max(Math.min(radius, 5), near);
+        near = Math.max(Math.min(radiusMax, 5), near);
         far = Math.max(5, far);
     } else {
         near = Math.max(0, near);