impostor shading better matching 3d model shading

This commit is contained in:
Mikulas Florek 2021-02-08 00:29:25 +01:00
parent 9195b1d96d
commit a1f6e2683c

View file

@ -167,8 +167,6 @@ fragment_shader [[
Surface surface = getSurface();
vec4 self_shadow = textureLod(u_selfshadow, v_uv, 0);
float shadow = dot(self_shadow, v_shadow_coefs);
shadow *= shadow;
shadow *= shadow;
vec3 res = computeDirectLight(surface
, Global.light_dir.xyz