diff options
Diffstat (limited to 'data/shaders/lighting.vert')
-rw-r--r-- | data/shaders/lighting.vert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/shaders/lighting.vert b/data/shaders/lighting.vert index 99e9b37..af80574 100644 --- a/data/shaders/lighting.vert +++ b/data/shaders/lighting.vert @@ -39,7 +39,7 @@ void main() { light0dist = length(vert_to_light); light0vc = normalize(vert_to_light); vert_to_eye = v4conv3(-vert); - light0half = normalize(vert_to_eye + vert_to_light); + light0half = normalize(normalize(vert_to_eye) + light0vc); /* Diffuse "background glow" - this can be normalised only once, here, since 'position' * is really 'direction' and is the same for all vertices. */ |