~shockham/cligen

fa1015b4692674d6b121bb5d3be866007067d044 — shockham 10 months ago 3972959
Fix input thread start function signature
1 files changed, 3 insertions(+), 5 deletions(-)

M march.c
M march.c => march.c +3 -5
@@ 131,8 131,8 @@ traceRay(vec3 origin, vec3 direction)

vec3 cam;

void
input(void)
void *
input(void *arg)
{
	// camera movement
	while(1) {


@@ 166,7 166,7 @@ main(void)
	pthread_t thread;

	// camera stuff
    time = 0.0f;
	time = 0.0f;
	vec3 origin = {0.0f, 0.0f, 0.0f};
	vec3 target = {0.0f, 0.0f, 0.0f};
	cam = (vec3){0.0f, 0.0f, 5.0 + 2.0f * sin(time)};


@@ 177,8 177,6 @@ main(void)
		return 1;
	}

	time = 0.0;

	while(1) {
		printf("frame:%f | cam: (%f, %f, %f)\n", time, origin.x, origin.y, origin.z);
		// cam mat3