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 598bc1d commit 5ae31b6Copy full SHA for 5ae31b6
aquarium/aquarium.js
@@ -545,15 +545,15 @@ function createProgramFromTags(
545
}
546
547
if (opt_reflection) {
548
- fs = fs.replace(/^.*?\/\/ #noReflection\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #noReflection$/gm, "");
549
} else {
550
- fs = fs.replace(/^.*?\/\/ #reflection\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #reflection$/gm, "");
551
552
553
if (opt_normalMaps) {
554
- fs = fs.replace(/^.*?\/\/ #noNormalMap\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #noNormalMap$/gm, "");
555
556
- fs = fs.replace(/^.*?\/\/ #normalMap\n/gm, "");
+ fs = fs.replace(/^.*?\/\/ #normalMap$/gm, "");
557
558
559
var vs = getScriptText(vertexTagId);
0 commit comments