Mirror: A frag-canvas custom element to apply Shadertoy fragment shaders to a canvas or image/video element

fix: Fix preprocessing typo

Changed files
+6 -1
.changeset
src
+5
.changeset/silly-houses-rush.md
···
+
---
+
'frag-canvas': patch
+
---
+
+
Fix preprocessing typo
+1 -1
src/frag-canvas-element.ts
···
if (isES300 && output.includes('gl_FragColor')) {
header += 'out vec4 aFragColor;\n';
-
header += '#define glFragColor aFragColor.xy\n';
+
header += '#define gl_FragColor aFragColor.xy\n';
}
if (output.includes('iChannel0')) header += 'uniform sampler2D iChannel0;\n';