mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
Polymost palette-indexed texture rendering
git-svn-id: https://svn.eduke32.com/eduke32@6776 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f19607daa8
commit
a364b7bbfd
18 changed files with 784 additions and 155 deletions
|
@ -1016,6 +1016,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
|
|||
else
|
||||
glBindTexture(GL_TEXTURE_2D, m->texid[globalpal]);
|
||||
|
||||
polymost_usePaletteIndexing(false);
|
||||
|
||||
glBegin(GL_QUADS); // {{{
|
||||
|
||||
for (bssize_t i=0, fi=0; i<m->qcnt; i++)
|
||||
|
@ -1051,6 +1053,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
|
|||
|
||||
glEnd(); // }}}
|
||||
|
||||
polymost_usePaletteIndexing(true);
|
||||
|
||||
//------------
|
||||
glDisable(GL_CULL_FACE);
|
||||
// glPopAttrib();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue