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

Followed your example in the README... #40

Open
Zibri opened this issue Jan 8, 2023 · 0 comments
Open

Followed your example in the README... #40

Zibri opened this issue Jan 8, 2023 · 0 comments

Comments

@Zibri
Copy link

Zibri commented Jan 8, 2023

let fragment = `main() { 
gl_FragColor = vec4(1.0); 
}`;
// load a fragment and vertex shader
let vertex = 'attribute vec4 a_position; main(){ gl_Position = a_position; }';
glslc.load(fragment, vertex);

*** Error compiling shader: ERROR: 0:1: 'main' : syntax error
*** Error compiling shader: ERROR: 0:1: '.' : syntax error

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

1 participant