Explorar o código

fix temp texture usage for color smoothing

Alexander Rose %!s(int64=3) %!d(string=hai) anos
pai
achega
f8d32d1d8d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/mol-geo/geometry/texture-mesh/color-smoothing.ts

+ 3 - 3
src/mol-geo/geometry/texture-mesh/color-smoothing.ts

@@ -510,10 +510,10 @@ export function applyTextureMeshSubstanceSmoothing(values: TextureMeshValues, re
 
     stride *= 3; // triple because TextureMesh is never indexed (no elements buffer)
 
-    if (!webgl.namedTextures[ColorSmoothingRgbName]) {
-        webgl.namedTextures[ColorSmoothingRgbName] = webgl.resources.texture('image-uint8', 'rgba', 'ubyte', 'nearest');
+    if (!webgl.namedTextures[ColorSmoothingRgbaName]) {
+        webgl.namedTextures[ColorSmoothingRgbaName] = webgl.resources.texture('image-uint8', 'rgba', 'ubyte', 'nearest');
     }
-    const colorData = webgl.namedTextures[ColorSmoothingRgbName];
+    const colorData = webgl.namedTextures[ColorSmoothingRgbaName];
     colorData.load(values.tSubstance.ref.value);
 
     const smoothingData = calcTextureMeshColorSmoothing({