You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it's trying to compile the .glsl file as JavaScript, instead of just turning it into a string. I'm also getting a similar compile error on the very first character of my shader:
#extension GL_OES_standard_derivatives : enable
^
ParseError: Unexpected character '#'
Activity
mere commentedon Jan 24, 2017
Hi Chris, does your vertex shader work if you run it through a parser?
Try: http://shdr.bkcore.com
joy4sure commentedon Feb 12, 2018
I also have this problem. My shader can work with a parser.
marquizzo commentedon Oct 17, 2018
It looks like it's trying to compile the
.glslfile as JavaScript, instead of just turning it into a string. I'm also getting a similar compile error on the very first character of my shader: