polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 24e568107e8b8e79abbda6c044a695f4b76aee1f
parent 36b1d7c0255932142f25ee5739dff422dda324e0
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 27 Apr 2018 09:50:33 -0700

note

Diffstat:
Msrc/terrain.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/terrain.c b/src/terrain.c @@ -94,6 +94,8 @@ terrain_create(struct terrain *terrain, struct perlin_settings *perlin) { float *del_norms = calloc(num_verts * 3, sizeof(*del_norms)); u32 *del_indices = calloc(num_verts, sizeof(*del_indices)); + /// XXX (perf): we should be able to do this directly from del instead of + /// triangulating with tri for (i = 0; i < tri->num_triangles; ++i) { int nv = i * 3; int ndv = i * 9;