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

I have run it successfully,but why i just have the direction light effect directly? #3

Open
jlk1997 opened this issue Apr 25, 2023 · 4 comments

Comments

@jlk1997
Copy link

jlk1997 commented Apr 25, 2023

where i could set it?
image

@jlk1997
Copy link
Author

jlk1997 commented Apr 25, 2023

image
i notice these two error in fragment shader. its a compile problem maybe,but i never change the shader. how can i fix it,i consider that these two error cause that i only have the direction light effect!

@jlk1997
Copy link
Author

jlk1997 commented Apr 25, 2023

ohhhh!!
image
when i input this command : iLight, it full dark scene,i can not find the snytax error in fragmeng,555

@jlk1997
Copy link
Author

jlk1997 commented Apr 25, 2023

image

@Helliaca
Copy link
Owner

I expect that these Invalid Operation errors are due to the shader having compilation that error.

The error is referring to ´RGBA8´ in this line

That line is perfectly valid GLSL (and it compiles just fine on my PC), so I'm not sure why you are getting that error.
You could try writing the rgba8 in lowercase, or removing the layout qualifier entirely. Not sure... 😅

I presume you are using OpenGL 4.5?

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