[vulkan] Tweak spotlight cone edges a little

This commit is contained in:
Bill Currie 2022-05-06 08:32:19 +09:00
parent ed82b5f299
commit 551c6b82cb

View file

@ -50,7 +50,7 @@ spot_cone (LightData light, vec3 incoming)
vec3 dir = light.direction.xyz; vec3 dir = light.direction.xyz;
float cone = light.direction.w; float cone = light.direction.w;
float spotdot = dot (incoming, dir); float spotdot = dot (incoming, dir);
return 1 - smoothstep (cone, cone + 0.02, spotdot); return 1 - smoothstep (cone, .995 * cone + 0.005, spotdot);
} }
float float