diff --git a/client/main.c b/client/main.c index 045c0ea..062d12e 100644 --- a/client/main.c +++ b/client/main.c @@ -46,12 +46,12 @@ static void render(GSEngine self){ GSVector4 col1 = {1, 0, 0, 1}; GSVector4 col2 = {1, 1, 1, 1}; GSVector3 v[] = { - {-10, 0, 10}, - {-10, 0, -10}, - {10, 0, -10}, - {10, 0, 10} + {-10, -1, 10}, + {-10, -1, -10}, + {10, -1, -10}, + {10, -1, 10} }; - GSVector3 pos = {0, 1, 0}; + GSVector3 pos = {0, 0, 0}; GSVector3 n = {0, 1, 0}; for(i = 0; i < sizeof(obj) / sizeof(obj[0]); i++){ @@ -64,7 +64,7 @@ static void render(GSEngine self){ GSGLPushMatrix(gl); GSGLSetPosition(gl, rv); GSGLSetRotation3x3(gl, rm); -// GSGLTetrakis(gl, 0.5, col1, col2); + //GSGLTetrakis(gl, 0.5, col1, col2); GSGLPopMatrix(gl); } diff --git a/engine/include/GearSrc/GL.h b/engine/include/GearSrc/GL.h index 2c9f26c..35600b1 100644 --- a/engine/include/GearSrc/GL.h +++ b/engine/include/GearSrc/GL.h @@ -11,7 +11,7 @@ extern "C" { #endif #define GSGLMaxDistance 100.0 -#define GSGLMaxShadowDistance 1024 +#define GSGLMaxShadowDistance 512 /* gl_shader.c */ GSDECL GSBool GSGLShaderPrepare(GSGL gl, GLuint* shader, const char* vs, const char* fs); diff --git a/engine/src/client.c b/engine/src/client.c index 713202a..8ff30c2 100644 --- a/engine/src/client.c +++ b/engine/src/client.c @@ -44,10 +44,10 @@ GSClient GSClientCreate(GSEngine engine) { client->look_at[1] = 1; client->look_at[2] = 0; - client->light0[0] = 1; - client->light0[1] = 1; + client->light0[0] = 5; + client->light0[1] = 20; client->light0[2] = 0; - client->light0[3] = 0; + client->light0[3] = 1; client->skybox_enabled = GSFalse;