diff options
author | rodri <rgl@antares-labs.eu> | 2024-04-18 08:45:08 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-04-18 08:45:08 +0000 |
commit | 54db162c1146dce7bf0abcd28864c8f6207c6a26 (patch) | |
tree | 8f4c844f9c962517ce6e621999a3ba3ecd6256d4 | |
parent | 05ca30481c0857c673a4341a1550b8216028fd83 (diff) | |
download | 3dee-54db162c1146dce7bf0abcd28864c8f6207c6a26.tar.gz 3dee-54db162c1146dce7bf0abcd28864c8f6207c6a26.tar.bz2 3dee-54db162c1146dce7bf0abcd28864c8f6207c6a26.zip |
fix alpha channel value in the fragment shaders.
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -174,7 +174,7 @@ gouraudshader(FSparams *sp) else tc = Pt3(1,1,1,1); - c.a = fclamp(sp->v.c.a*tc.a, 0, 1); + c.a = 1; c.b = fclamp(sp->v.c.b*tc.b, 0, 1); c.g = fclamp(sp->v.c.g*tc.g, 0, 1); c.r = fclamp(sp->v.c.r*tc.r, 0, 1); @@ -261,7 +261,7 @@ phongshader(FSparams *sp) tc = Pt3(1,1,1,1); c = addpt3(ambient, addpt3(diffuse, specular)); - c.a = fclamp(c.a*tc.a, 0, 1); + c.a = 1; c.b = fclamp(c.b*tc.b, 0, 1); c.g = fclamp(c.g*tc.g, 0, 1); c.r = fclamp(c.r*tc.r, 0, 1); @@ -313,7 +313,7 @@ identshader(FSparams *sp) else tc = Pt3(1,1,1,1); - c.a = fclamp(sp->v.c.a*tc.a, 0, 1); + c.a = 1; c.b = fclamp(sp->v.c.b*tc.b, 0, 1); c.g = fclamp(sp->v.c.g*tc.g, 0, 1); c.r = fclamp(sp->v.c.r*tc.r, 0, 1); |