소스 검색

fixed point.vert for texture-based size

Alexander Rose 6 년 전
부모
커밋
a1f8d8994f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;