[quake3-commits] [ioquake/ioq3] 3d6aa0: OpenGL2: Fix dark lightmap on shader in mpteam6
Zack Middleton
zack at cloemail.com
Sun Feb 4 15:35:24 EST 2018
Branch: refs/heads/master
Home: https://github.com/ioquake/ioq3
Commit: 3d6aa05694cdfbfd630edb95f1096ed107b6a5d4
https://github.com/ioquake/ioq3/commit/3d6aa05694cdfbfd630edb95f1096ed107b6a5d4
Author: Zack Middleton <zack at cloemail.com>
Date: 2018-02-04 (Sun, 04 Feb 2018)
Changed paths:
M code/renderergl2/tr_shader.c
Log Message:
-----------
OpenGL2: Fix dark lightmap on shader in mpteam6
Team Arena's mpteam6 map has a shader textures/base_wall2/space_concrete
that contains an opaque stage, two non-lightmap blendfunc filter stages,
a blendfunc add stage, and a lightmap stage. The lightmap was attached
to all four of the non-lightmap stages causing the filter stages to
darken the lightmap multiple times.
Change setting up the lightall GLSL shader to only use lightmap if it's
the first stage or not a blendfunc filter stage. Now only the opaque
and blendfunc add stages of the mpteam6 shader use the lightmap.
Reported by Alexander Nadeau (wareya).
More information about the quake3-commits
mailing list