summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render.c b/render.c
index f5e7b50..f93cce4 100644
--- a/render.c
+++ b/render.c
@@ -739,6 +739,7 @@ void ren_mesh(
wv[3] = m->t[v.t * 2 + 0];
wv[4] = m->t[v.t * 2 + 1];
{
+#if 0
/* todo proper lighting */
int ld[] = { f1/2, f1/2, -f1/2 };
int nd[] = { f1/2, f1/2, f1/2 };
@@ -752,6 +753,11 @@ void ren_mesh(
wv[5] = l;
wv[6] = l;
wv[7] = l;
+#else
+ wv[5] = f1;
+ wv[6] = f1;
+ wv[7] = f1;
+#endif
}
}
ren_tri3(r, &tri[0], &tri[8], &tri[16], tex);