diff --git a/shaders/manif.fs b/shaders/manif.fs index cabe0cc..d782d1e 100644 --- a/shaders/manif.fs +++ b/shaders/manif.fs @@ -5,7 +5,7 @@ in vec3 vec_normal; out vec4 fragColor; -const int max = 5; // should change in cpu too +const int max = 20; // should change in cpu too uniform vec4 couleur; uniform vec4 lum_pos[max]; @@ -26,7 +26,7 @@ void main() { if(i == 0) { fragColor = color; } else { - fragColor = mix(fragColor, color, i / 2.); + fragColor = mix(fragColor, color, 1. * (i / 1)); } } diff --git a/src/manif.c b/src/manif.c index c72521e..74b0c4f 100644 --- a/src/manif.c +++ b/src/manif.c @@ -9,7 +9,7 @@ struct manifestant { GLfloat ox, oz; }; -#define HEROS_NUMBER 5 // should change in fragment shader too +#define HEROS_NUMBER 20 // should change in fragment shader too static struct manifestant _herosId[HEROS_NUMBER]; static const char *matrix_proj = "proj"; @@ -83,7 +83,7 @@ static void draw(void) { gl4duFrustumf(-1, 1, -ratio, ratio, 1, 1000); bindAndLoadf(matrix_view); - const GLfloat distance = 10; // distance from the scene + const GLfloat distance = 5; // distance from the scene gl4duLookAtf(0, distance, distance, 0, 0, 0, 0, 1, 0); // gl4duRotatef(-90, 0, 1, 0); // rotation camera