opengl-learn

step-by-step introduction to OpenGL ES 2.0
git clone https://0xdd.org/code/opengl-learn.git
Log | Files | Refs | LICENSE

commit 90b09385b3aba47aa6963c9ff4bc162e0a07b913
parent 0398d9704d49da1d5c3cd4866ca6f03ac792af4e
Author: David DiPaola <DavidDiPaola@users.noreply.github.com>
Date:   Wed, 20 Jun 2018 09:26:24 -0400

02,03: change eye position to match 01's

Diffstat:
02-cube.c | 2+-
03-texture.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/02-cube.c b/02-cube.c @@ -47,7 +47,7 @@ main() { ogl_perspective(45.0f, 0.1f, 100.0f, &MVP_projection); struct ogl_mat4f MVP_view; - struct ogl_vec3f MVP_view_eye = { .x= 4.0f, .y= 3.0f, .z=-3.0f }; + struct ogl_vec3f MVP_view_eye = { .x= 4.0f, .y= 3.0f, .z= 3.0f }; struct ogl_vec3f MVP_view_center = { .x= 0.0f, .y= 0.0f, .z= 0.0f }; struct ogl_vec3f MVP_view_up = { .x= 0.0f, .y= 1.0f, .z= 0.0f }; ogl_lookat(MVP_view_eye, MVP_view_center, MVP_view_up, &MVP_view); diff --git a/03-texture.c b/03-texture.c @@ -62,7 +62,7 @@ main() { ogl_perspective(45.0f, 0.1f, 100.0f, &MVP_projection); struct ogl_mat4f MVP_view; - struct ogl_vec3f MVP_view_eye = { .x= 4.0f, .y= 3.0f, .z=-3.0f }; + struct ogl_vec3f MVP_view_eye = { .x= 4.0f, .y= 3.0f, .z= 3.0f }; struct ogl_vec3f MVP_view_center = { .x= 0.0f, .y= 0.0f, .z= 0.0f }; struct ogl_vec3f MVP_view_up = { .x= 0.0f, .y= 1.0f, .z= 0.0f }; ogl_lookat(MVP_view_eye, MVP_view_center, MVP_view_up, &MVP_view);