From 3315fb463b2c883ea52903bb9a3c71fd613e66d9 Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Sun, 22 Jan 2012 01:05:59 +0000 Subject: [PATCH] Small correction to lighting model in shaders. Light intensity is no longer clipped. --- Src/Graphics/Shaders/Fragment.glsl | 2 +- Src/Graphics/Shaders/Fragment_Flat.glsl | 7 +++---- Src/Graphics/Shaders/Fragment_NoSpotlight.glsl | 2 +- Src/Graphics/Shaders/Vertex.glsl | 3 +-- Src/Graphics/Shaders3D.h | 3 +-- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Src/Graphics/Shaders/Fragment.glsl b/Src/Graphics/Shaders/Fragment.glsl index e406824..09b2e6c 100644 --- a/Src/Graphics/Shaders/Fragment.glsl +++ b/Src/Graphics/Shaders/Fragment.glsl @@ -178,7 +178,7 @@ void main(void) ellipse = (gl_FragCoord.xy-spotEllipse.xy)/spotEllipse.zw; insideSpot = dot(ellipse,ellipse); if ((insideSpot <= 1.0) && (fsViewZ>=spotRange.x) && (fsViewZ=spotRange.x) && (fsViewZ=spotRange.x) && (fsViewZ=spotRange.x) && (fsViewZ