Innoviox / Axiom

A modular, flexible, lightweight, declarative, efficient, incremental, structured library for 3D written in LWJGL-OPENGL bindings for Java
https://github.com/Innoviox/Axiom
GNU General Public License v3.0
4 stars 2 forks source link

Light is weird #15

Open Innoviox opened 6 years ago

Innoviox commented 6 years ago

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 commented 6 years ago

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