mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[vulkan] Tweak spotlight cone edges a little
This commit is contained in:
parent
ed82b5f299
commit
551c6b82cb
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ spot_cone (LightData light, vec3 incoming)
|
|||
vec3 dir = light.direction.xyz;
|
||||
float cone = light.direction.w;
|
||||
float spotdot = dot (incoming, dir);
|
||||
return 1 - smoothstep (cone, cone + 0.02, spotdot);
|
||||
return 1 - smoothstep (cone, .995 * cone + 0.005, spotdot);
|
||||
}
|
||||
|
||||
float
|
||||
|
|
Loading…
Reference in a new issue