From 2c0139aeadf9d85c6d11778ebaa5dbc03bcafd2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Thu, 6 Jun 2019 23:26:40 +0200 Subject: [PATCH] Continue model viewer --- programs/modelViewer.c | 4 ++-- small3dlib.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/modelViewer.c b/programs/modelViewer.c index 8c8ad89..30f60bc 100644 --- a/programs/modelViewer.c +++ b/programs/modelViewer.c @@ -191,8 +191,8 @@ int main() SDL_Event event; toLight.x = 10; - toLight.y = -10; - toLight.z = -10; + toLight.y = 10; + toLight.z = 10; S3L_normalizeVec3(&toLight); diff --git a/small3dlib.h b/small3dlib.h index b7af9fe..65750c9 100644 --- a/small3dlib.h +++ b/small3dlib.h @@ -1349,7 +1349,7 @@ void S3L_initPixelInfo(S3L_PixelInfo *p) // TODO: maybe non-pointer for p void S3L_initDrawConfig(S3L_DrawConfig *config) { - config->backfaceCulling = 1; + config->backfaceCulling = 2; config->visible = 1; }