diff options
-rw-r--r-- | gfx/gl/shaders/basicShader.fs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shaders/basicShader.fs b/gfx/gl/shaders/basicShader.fs index 3aa974f..35d3ec3 100644 --- a/gfx/gl/shaders/basicShader.fs +++ b/gfx/gl/shaders/basicShader.fs @@ -8,6 +8,6 @@ uniform vec3 lightDirection; void main()
{
- gl_FragColor = texture2D(sampler, texCoord0) *
- clamp(dot(-lightDirection, normal0), 0.0, 1.0);
+ gl_FragColor = texture2D(sampler, texCoord0);
+ gl_FragColor.xyz *= clamp(dot(-lightDirection, normal0), 0.0, 1.0);
}
|