We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede24b0 commit a8abe78Copy full SHA for a8abe78
aquarium/aquarium.js
@@ -513,15 +513,15 @@ function createProgramFromTags(
513
}
514
515
if (opt_reflection) {
516
- fs = fs.replace(/^.*?\/\/ #noReflection\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #noReflection$/gm, "");
517
} else {
518
- fs = fs.replace(/^.*?\/\/ #reflection\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #reflection$/gm, "");
519
520
521
if (opt_normalMaps) {
522
- fs = fs.replace(/^.*?\/\/ #noNormalMap\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #noNormalMap$/gm, "");
523
524
- fs = fs.replace(/^.*?\/\/ #normalMap\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #normalMap$/gm, "");
525
526
527
var vs = getScriptText(vertexTagId);
0 commit comments