summaryrefslogtreecommitdiff
path: root/src/renderergl2/glsl
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2016-01-15 02:46:30 -0800
committerTim Angus <tim@ngus.net>2016-04-07 11:50:43 +0100
commitac7296d42f36891d13d7cd475f5ce46fa6ef3d63 (patch)
tree94d2f516aa332345d782276cb0382ec84a00ea27 /src/renderergl2/glsl
parent8dc446735848d849c82d3e46fcce4a9b4711dd5b (diff)
OpenGL2: Remove specular ambient.
Diffstat (limited to 'src/renderergl2/glsl')
-rw-r--r--src/renderergl2/glsl/lightall_fp.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/glsl/lightall_fp.glsl b/src/renderergl2/glsl/lightall_fp.glsl
index 17dc9fca..b8f3985f 100644
--- a/src/renderergl2/glsl/lightall_fp.glsl
+++ b/src/renderergl2/glsl/lightall_fp.glsl
@@ -363,7 +363,7 @@ void main()
reflectance = CalcDiffuse(diffuse.rgb, EH, NH, roughness);
gl_FragColor.rgb = lightColor * reflectance * (attenuation * NL);
- gl_FragColor.rgb += ambientColor * (diffuse.rgb + specular.rgb);
+ gl_FragColor.rgb += ambientColor * diffuse.rgb;
#if defined(USE_CUBEMAP)
reflectance = EnvironmentBRDF(roughness, NE, specular.rgb);