Sfoglia il codice sorgente

alpha-orbitals: re-enable cutoff in GPU shader

David Sehnal 4 anni fa
parent
commit
eda570d4f1
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/extensions/alpha-orbitals/gpu/shader.frag.ts

+ 3 - 3
src/extensions/alpha-orbitals/gpu/shader.frag.ts

@@ -210,9 +210,9 @@ void main(void) {
         float R2 = dot(X, X);
 
         // center.w is squared cutoff radius
-        // if (R2 > center.w) {
-        //     continue;
-        // }
+        if (R2 > center.w) {
+            continue;
+        }
 
         vec4 info = texture2D(tInfo, cCoord);