diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 01:01:42 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 01:06:47 +0000 |
commit | d8c0bee891a9bc30bebcd5682bdba4d5b21cfd5b (patch) | |
tree | 0272b77e896819efabe7c77db388d562d78da86a /gfx/gl/shaders/basicShader.fs | |
parent | Custom land and water shaders (diff) | |
download | ilt-d8c0bee891a9bc30bebcd5682bdba4d5b21cfd5b.tar.bz2 ilt-d8c0bee891a9bc30bebcd5682bdba4d5b21cfd5b.tar.xz ilt-d8c0bee891a9bc30bebcd5682bdba4d5b21cfd5b.zip |
Remove spare bits from shaders and tidy up
Diffstat (limited to 'gfx/gl/shaders/basicShader.fs')
-rw-r--r-- | gfx/gl/shaders/basicShader.fs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/basicShader.fs b/gfx/gl/shaders/basicShader.fs index b6c011d..fe9a6b3 100644 --- a/gfx/gl/shaders/basicShader.fs +++ b/gfx/gl/shaders/basicShader.fs @@ -11,5 +11,5 @@ uniform vec3 ambientColor; void main()
{
gl_FragColor = texture(sampler, texCoord0);
- gl_FragColor.xyz *= clamp(ambientColor + (dot(-lightDirection, normal0) * lightColor), 0.0, 1.0);
+ gl_FragColor.rgb *= clamp(ambientColor + (dot(-lightDirection, normal0) * lightColor), 0.0, 1.0);
}
|