diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-12 01:22:59 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-12 01:22:59 +0000 |
commit | 8fa17325b3e4bb818efd5aa5a047f727a295374f (patch) | |
tree | d750e2928d9e97e1212d0f424d0846cdcfe9b922 /gfx/gl | |
parent | Single function for generating the rail link mesh (diff) | |
download | ilt-8fa17325b3e4bb818efd5aa5a047f727a295374f.tar.bz2 ilt-8fa17325b3e4bb818efd5aa5a047f727a295374f.tar.xz ilt-8fa17325b3e4bb818efd5aa5a047f727a295374f.zip |
Fix issue with normal affecting transparency
Diffstat (limited to 'gfx/gl')
-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);
}
|