Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shader #version directive compile error #290

Open
exolution opened this issue May 30, 2024 · 1 comment
Open

shader #version directive compile error #290

exolution opened this issue May 30, 2024 · 1 comment

Comments

@exolution
Copy link

exolution commented May 30, 2024

my shader content is

#version 300 es
attribute lowp vec4 a_vertexPosition;
attribute vec2 a_texturePosition;
varying vec2 v_texCoord;
void main() {
gl_Position = a_vertexPosition;
v_texCoord = a_texturePosition;
}

when i compile this shader it throws error

ERROR: 0:2: 'version' : #version directive must occur before anything else, except for comments and white space

I am sure that in the shader text passed to gl.shaderSource, there are no characters before this version directive.

@army8735
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants