polyadvent

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

commit d449b59e787ebf0952e59c0855a969b3774aa836
parent 7538af80c4f7b4a80be8bd3611e2eae959fb3551
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 24 Apr 2018 19:21:58 -0700

cruft

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

diff --git a/src/terrain.c b/src/terrain.c @@ -40,7 +40,6 @@ terrain_create(struct terrain *terrain) { float tmp2[3]; float norm[3]; del_point2d_t *points = calloc(num_verts, sizeof(*points)); - float *zs = calloc(num_verts * 3, sizeof(*zs)); float *verts = calloc(num_verts * 3, sizeof(*verts)); float *normals = calloc(num_verts * 3, sizeof(*normals)); /* int *indices = calloc(num_verts, sizeof(*indices)); */ @@ -55,13 +54,11 @@ terrain_create(struct terrain *terrain) { points[i].x = x; points[i].y = y; - zs[i] = z; verts[n] = (float)x; verts[n+1] = (float)y; verts[n+2] = (float)z; - // ^i * dx vec3_scale((float[3]){1,0,0}, dx, tmp1); // ^k - (^i * dx)