Browse Source

fixed point.vert for texture-based size

Alexander Rose 6 years ago
parent
commit
a1f8d8994f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/mol-gl/shader/point.vert

+ 4 - 0
src/mol-gl/shader/point.vert

@@ -17,6 +17,10 @@ uniform float uViewportHeight;
     uniform float uSize;
 #elif defined(dSizeType_attribute)
     attribute float aSize;
+#elif defined(dSizeType_instance) || defined(dSizeType_group) || defined(dSizeType_groupInstance)
+    varying vec4 vSize;
+    uniform vec2 uSizeTexDim;
+    uniform sampler2D tSize;
 #endif
 
 attribute vec3 aPosition;