mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
Support clamping in polymost1Frag.glsl and use it for sprites
git-svn-id: https://svn.eduke32.com/eduke32@7783 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/include/polymost.h # source/build/src/polymost1Frag.glsl # source/build/src/voxmodel.cpp
This commit is contained in:
parent
a55e19ed83
commit
1664310159
6 changed files with 52 additions and 2 deletions
|
@ -1131,6 +1131,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
|
|||
#endif
|
||||
const float phack[2] = { 0, 1.f/256.f };
|
||||
|
||||
char prevClamp = polymost_getClamp();
|
||||
polymost_setClamp(false);
|
||||
if (!m->texid[globalpal])
|
||||
m->texid[globalpal] = gloadtex(m->mytex, m->mytexx, m->mytexy, m->is8bit, globalpal);
|
||||
|
||||
|
@ -1180,7 +1182,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
|
|||
}
|
||||
|
||||
GLInterface.Draw(DT_QUADS, qstart, qdone * 4);
|
||||
|
||||
polymost_setClamp(prevClamp);
|
||||
//------------
|
||||
glDisable(GL_CULL_FACE);
|
||||
// glPopAttrib();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue