diff --git a/engine/src/client.c b/engine/src/client.c index ff33c15..f80d5b1 100644 --- a/engine/src/client.c +++ b/engine/src/client.c @@ -41,7 +41,7 @@ GSClient GSClientCreate(GSEngine engine) { client->look_at[0] = 0; client->look_at[1] = 1; - client->look_at[2] = 5 - 1; + client->look_at[2] = 0; client->light0[0] = 2.5; client->light0[1] = 5; diff --git a/engine/src/math.c b/engine/src/math.c index c4890bc..350e67d 100644 --- a/engine/src/math.c +++ b/engine/src/math.c @@ -54,6 +54,14 @@ void GSMathAdd3(GSVector3 r, GSVector3 v0, GSVector3 v1) { void GSMathNormal3x3(GSVector3 r, GSVector3 v0, GSVector3 v1, GSVector3 v2) { GSVector3 t0, t1; + /** + * this used to be: + * (v1 - v0) * (v2 - v0) + * + * why do i have to do this now? i know it is because of +z front + * but why? + */ + GSMathSubtract3(t0, v1, v2); GSMathSubtract3(t1, v0, v2);