Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed error caused by wrong combination of brackets #404

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/color/webglColormapGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -91,4 +91,4 @@ vec4 ' + colormapName + '(float n) {\
}'

return fn;
}
};