From e3c7c72d9789ead8d817d7337f382839a06bce47 Mon Sep 17 00:00:00 2001 From: Shivangi Singh Date: Sun, 24 Apr 2022 13:25:07 +0530 Subject: [PATCH] fixed error caused by wrong combination of brackets --- src/color/webglColormapGenerator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/color/webglColormapGenerator.js b/src/color/webglColormapGenerator.js index cc76fd3d..e8a77090 100644 --- a/src/color/webglColormapGenerator.js +++ b/src/color/webglColormapGenerator.js @@ -73,11 +73,11 @@ vec4 ' + colormapName + '(float n) {\ x = vec2('+inMin+', '+inMax+'); // input value min and max in vec2\ y0 = vec3('+outMinR+', '+outMinG+', '+outMinB+') / 255.0; // min output val\ y1 = vec3('+outMaxR+', '+outMaxG+', '+outMaxB+') / 255.0; // max output val' - }'; + }; - } }); - } + + }; // in the original, we used if/else so we do only one range comparison, // but it's harder to concisely write, so here we're just doing a repeated if statement. @@ -91,4 +91,4 @@ vec4 ' + colormapName + '(float n) {\ }' return fn; -} +};