summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/shaders/shadowNoTex.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/datavisualization/engine/shaders/shadowNoTex.frag')
-rw-r--r--src/datavisualization/engine/shaders/shadowNoTex.frag8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datavisualization/engine/shaders/shadowNoTex.frag b/src/datavisualization/engine/shaders/shadowNoTex.frag
index d54efea9..b2e7adfc 100644
--- a/src/datavisualization/engine/shaders/shadowNoTex.frag
+++ b/src/datavisualization/engine/shaders/shadowNoTex.frag
@@ -3,9 +3,9 @@
uniform highp float lightStrength;
uniform highp float ambientStrength;
uniform highp float shadowQuality;
-uniform highp vec3 color_mdl;
+uniform highp vec4 color_mdl;
uniform highp sampler2DShadow shadowMap;
-uniform highp vec3 lightColor;
+uniform highp vec4 lightColor;
varying highp vec4 shadowCoord;
varying highp vec3 position_wrld;
@@ -32,8 +32,8 @@ highp vec2 poissonDisk[16] = vec2[16](vec2(-0.94201624, -0.39906216),
void main() {
highp vec3 materialDiffuseColor = color_mdl.rgb;
- highp vec3 materialAmbientColor = lightColor * ambientStrength * materialDiffuseColor;
- highp vec3 materialSpecularColor = lightColor;
+ highp vec3 materialAmbientColor = lightColor.rgb * ambientStrength * materialDiffuseColor;
+ highp vec3 materialSpecularColor = lightColor.rgb;
highp vec3 n = normalize(normal_cmr);
highp vec3 l = normalize(lightDirection_cmr);