Преглед изворни кода

alpha-orbitals: re-enable cutoff in GPU shader

David Sehnal пре 4 година
родитељ
комит
eda570d4f1
1 измењених фајлова са 3 додато и 3 уклоњено
  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);