diff --git a/c1k3-assets b/c1k3-assets index 7d2251e..f7c814d 160000 --- a/c1k3-assets +++ b/c1k3-assets @@ -1 +1 @@ -Subproject commit 7d2251eae1f15292976067aff58f371a6381046e +Subproject commit f7c814ddb767627820e47710c2592e7ff9aa8b28 diff --git a/main.c b/main.c index ad6ee55..496444b 100644 --- a/main.c +++ b/main.c @@ -211,7 +211,7 @@ int main(int argc, char* argv[]) { return 1; } SDL_GL_CreateContext(window); - // SDL_GL_SetSwapInterval(0); + SDL_GL_SetSwapInterval(0); // todo, vsync? game_load(); diff --git a/shader.frag b/shader.frag index 5e69958..443b49e 100644 --- a/shader.frag +++ b/shader.frag @@ -21,14 +21,12 @@ // Calculate all lights "vec3 vl = vec3(0,0,0);" "for(int i=0;i 1024. || c_dot < 0.) { continue; }" + "vl+= c_dot *" + "(1./pow(c_len,2.))" // Inverse distance squared "*l[i+1];" // Light color/intensity "}"