summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/effectlib/spotEdf.glsllib
diff options
context:
space:
mode:
Diffstat (limited to 'src/Runtime/res/effectlib/spotEdf.glsllib')
-rw-r--r--src/Runtime/res/effectlib/spotEdf.glsllib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/res/effectlib/spotEdf.glsllib b/src/Runtime/res/effectlib/spotEdf.glsllib
index defa641d..663bd8f0 100644
--- a/src/Runtime/res/effectlib/spotEdf.glsllib
+++ b/src/Runtime/res/effectlib/spotEdf.glsllib
@@ -34,7 +34,7 @@ float spotEdf( float exponent )
float dist = length(viewDir);
vec3 spotDir = viewDir / dist;
-
+
float spot = max(0.0f, dot(spotDir, normal));
att = pow(spot, exponent);