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

Light is weird #15

Open
Innoviox opened this issue Oct 31, 2017 · 1 comment
Open

Light is weird #15

Innoviox opened this issue Oct 31, 2017 · 1 comment

Comments

@Innoviox
Copy link
Owner

If you increase the gamma constant in phong.fs you get a better sense of where the light is coming from. When this was done the following block was displayed:

screenshot 2017-10-31 12 26 32

In this you can tell that the light is shading all of the faces in disparate corners. It is possible that the corners are reversed or backwards somehow. Or that it is rendering all of the faces the same, or any number of other things. :(

Innoviox added a commit that referenced this issue Oct 31, 2017
Changed the gamma constant from 2.2 to 20.2 to highlight issue #15
@Innoviox
Copy link
Owner Author

Note: to test, clone the gamma branch: https://github.com/Innoviox/Axiom/tree/gamma
Or change const float gamma (line 116 of bin/phong.fs) to 20.2

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

No branches or pull requests

1 participant