Explorar o código

fix shader dColorType_groupInstance texture read

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
46e2014297
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-gl/shader/chunks/assign-color-varying.glsl

+ 1 - 1
src/mol-gl/shader/chunks/assign-color-varying.glsl

@@ -5,7 +5,7 @@
 #elif defined(dColorType_group)
     vColor.rgb = readFromTexture(tColor, aGroup, uColorTexDim).rgb;
 #elif defined(dColorType_groupInstance)
-    vColor.rgb = readFromTexture(tColor, aGroup * float(uGroupCount) + aGroup, uColorTexDim).rgb;
+    vColor.rgb = readFromTexture(tColor, aInstance * float(uGroupCount) + aGroup, uColorTexDim).rgb;
 #elif defined(dColorType_objectPicking)
     vColor = encodeIdRGBA(float(uObjectId));
 #elif defined(dColorType_instancePicking)