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

Configure Feed

Select the types of activity you want to include in your feed.

fix: Fix preprocessing typo

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