diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-10-19 23:50:15 +0300 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-10-19 23:50:15 +0300 |
commit | 3c7790062aa05653efa0f8ee230c07cb7ead91dd (patch) | |
tree | 5f5382764dff263569b119ff95c401dc413a66e8 | |
parent | a5262a9504d0ad264d93e1761f5a4123e524cc87 (diff) | |
download | faqe-3c7790062aa05653efa0f8ee230c07cb7ead91dd.tar.gz faqe-3c7790062aa05653efa0f8ee230c07cb7ead91dd.tar.xz faqe-3c7790062aa05653efa0f8ee230c07cb7ead91dd.zip |
Fix light position so it falls outside of the utah teapot
-rw-r--r-- | faqe.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -155,9 +155,9 @@ int main(int argc, char **argv) camera_lookat(view, &cam); - lipos[0] = 3.0 * cosf(tnow / 10) * cosf(tnow / 20); - lipos[1] = 3.0 * sinf(tnow / 10); - lipos[2] = 3.0 * cosf(tnow / 10) * sinf(tnow / 20); + lipos[0] = 10.0 * cosf(tnow / 10) * cosf(tnow / 20); + lipos[1] = 10.0 * sinf(tnow / 10); + lipos[2] = 10.0 * cosf(tnow / 10) * sinf(tnow / 20); gl_clearcolor(0.2, 0.3, 0.3, 1.0); gl_clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |