summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-08-10 22:42:12 +1000
committerquou <quou@disroot.org>2024-08-10 22:42:12 +1000
commitbcd2fc9a97d33884e1229d62bb65d5a2679334b7 (patch)
treefe812fb2c05bf54d70172887addc659adec66306
parentcfc86e984f965285094fca91fee7d9098423b4cb (diff)
Remove lighting for now
-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);