From eda570d4f170a66655d15dc8c6f2ce5e017c00f3 Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Sat, 31 Oct 2020 20:19:13 +0100
Subject: [PATCH] alpha-orbitals: re-enable cutoff in GPU shader

---
 src/extensions/alpha-orbitals/gpu/shader.frag.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/extensions/alpha-orbitals/gpu/shader.frag.ts b/src/extensions/alpha-orbitals/gpu/shader.frag.ts
index 72224aa87..dd74ec3fa 100644
--- a/src/extensions/alpha-orbitals/gpu/shader.frag.ts
+++ b/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);
 
-- 
GitLab