mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 01:00:53 +00:00
Rewrote multitexture rendering. (faster, no fullbright bugs)
This commit is contained in:
parent
d24e28f28b
commit
54648f9a93
6 changed files with 136 additions and 422 deletions
|
@ -519,9 +519,8 @@ void R_DrawParticles (void)
|
|||
qboolean alphaTestEnabled;
|
||||
|
||||
glBindTexture (GL_TEXTURE_2D, particletexture);
|
||||
// LordHavoc: reset to single texture and modulate mode before drawing particles
|
||||
GL_DisableMultitexture();
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
// LordHavoc: particles should not affect zbuffer
|
||||
glDepthMask(0);
|
||||
alphaTestEnabled = glIsEnabled(GL_ALPHA_TEST);
|
||||
|
||||
if (alphaTestEnabled)
|
||||
|
@ -655,6 +654,7 @@ void R_DrawParticles (void)
|
|||
glEnd ();
|
||||
if (alphaTestEnabled)
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glDepthMask(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue