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 can't reproduce the light effect in ShaderLesson6 #15

Open
dortamiguel opened this issue May 24, 2022 · 1 comment
Open

I can't reproduce the light effect in ShaderLesson6 #15

dortamiguel opened this issue May 24, 2022 · 1 comment

Comments

@dortamiguel
Copy link

dortamiguel commented May 24, 2022

I'm trying to get this effect like you describe here

image

But after looking at your code and sending the same projection matrix I get this effect

image

The NormalMap was set to vec3(1) to debug that it wasn't an issue with the normals

What might be happening? I'm doing the same thing line by line

@dortamiguel
Copy link
Author

It looks like the angle of the light changes with the color of the normal

image
image
image

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