Make LIGHT_VEC affect 2D shadows again

This commit is contained in:
JFonS 2019-02-10 21:14:32 +01:00
parent 1fe2e715cb
commit 076a342a4e
2 changed files with 0 additions and 2 deletions

View file

@ -414,7 +414,6 @@ FRAGMENT_SHADER_CODE
color *= light;
#ifdef USE_SHADOWS
light_vec = light_uv_interp.zw; //for shadows
float angle_to_light = -atan(light_vec.x, light_vec.y);
float PI = 3.14159265358979323846264;
/*int i = int(mod(floor((angle_to_light+7.0*PI/6.0)/(4.0*PI/6.0))+1.0, 3.0)); // +1 pq os indices estao em ordem 2,0,1 nos arrays

View file

@ -549,7 +549,6 @@ FRAGMENT_SHADER_CODE
color *= light;
#ifdef USE_SHADOWS
light_vec = light_uv_interp.zw; //for shadows
float angle_to_light = -atan(light_vec.x, light_vec.y);
float PI = 3.14159265358979323846264;
/*int i = int(mod(floor((angle_to_light+7.0*PI/6.0)/(4.0*PI/6.0))+1.0, 3.0)); // +1 pq os indices estao em ordem 2,0,1 nos arrays