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

cannot convert from 'const 4-component vector of highp float' to 'FragUserData 3-component vector of highp float' #39

Open
Cre3sh opened this issue Nov 2, 2019 · 1 comment

Comments

@Cre3sh
Copy link

Cre3sh commented Nov 2, 2019

I was following tutorial no.10 and whenever i try to run my code after adding in the parts to load "basicVertex" and "BasicFragment" shaders, I keep getting the error in the title. My code is identical to Benny's.

basicFragment.fs:
#version 330

out vec3 fragColor;

void main()
{
fragColor = vec4(0.0, 1.0, 1.0, 1.0);
}

basicVertex.vs:
#version 330

layout (location = 0) in vec3 position;

void main()
{
gl_Position = vec4(0.25 * position, 1.0);
}

@Cre3sh
Copy link
Author

Cre3sh commented Nov 2, 2019

Nvm I'm dumb lol i put it as out vec3 instead of out vec4

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