mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Put the transparent surfaces on the water chain.
I'd actually done this the first time, but then got confused and forgot the waterchain works with multiple textures. This is actually the right place as all transparent surfaces need to be sorted irrespective to their textures. Really, waterchain needs to be renamed.
This commit is contained in:
parent
b286a35281
commit
706f09b247
1 changed files with 4 additions and 7 deletions
|
@ -354,10 +354,10 @@ chain_surface (msurface_t *surf, vec_t *transform, float *color)
|
|||
{
|
||||
instsurf_t *is;
|
||||
|
||||
if (surf->flags & SURF_DRAWTURB) {
|
||||
CHAIN_SURF_B2F (surf, waterchain);
|
||||
} else if (surf->flags & SURF_DRAWSKY) {
|
||||
if (surf->flags & SURF_DRAWSKY) {
|
||||
CHAIN_SURF_F2B (surf, sky_chain);
|
||||
} else if ((surf->flags & SURF_DRAWTURB) || (color && color[3] < 1.0)) {
|
||||
CHAIN_SURF_B2F (surf, waterchain);
|
||||
} else {
|
||||
texture_t *tex;
|
||||
|
||||
|
@ -365,10 +365,7 @@ chain_surface (msurface_t *surf, vec_t *transform, float *color)
|
|||
tex = surf->texinfo->texture;
|
||||
else
|
||||
tex = R_TextureAnimation (surf);
|
||||
if (color && color[3] < 1.0)
|
||||
CHAIN_SURF_B2F (surf, tex->tex_chain);
|
||||
else
|
||||
CHAIN_SURF_F2B (surf, tex->tex_chain);
|
||||
CHAIN_SURF_F2B (surf, tex->tex_chain);
|
||||
|
||||
update_lightmap (surf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue