mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
Model specular map support and polymer fix for the OSX/ATI driver.
git-svn-id: https://svn.eduke32.com/eduke32@1609 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2b734bb6d0
commit
e7c9ce8624
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
// blah
|
// blah
|
||||||
|
|
||||||
#ifdef POLYMOST
|
#ifdef POLYMOST
|
||||||
|
|
||||||
#define POLYMER_C
|
#define POLYMER_C
|
||||||
|
@ -2792,6 +2793,7 @@ static void polymer_updatewall(int16_t wallnum)
|
||||||
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->wall.vbo);
|
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->wall.vbo);
|
||||||
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->wall.buffer);
|
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->wall.buffer);
|
||||||
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->over.vbo);
|
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->over.vbo);
|
||||||
|
if (w->over.buffer)
|
||||||
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->over.buffer);
|
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->over.buffer);
|
||||||
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->mask.vbo);
|
bglBindBufferARB(GL_ARRAY_BUFFER_ARB, w->mask.vbo);
|
||||||
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->mask.buffer);
|
bglBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, 4 * sizeof(GLfloat) * 5, w->mask.buffer);
|
||||||
|
@ -3618,6 +3620,12 @@ static void polymer_drawmdsprite(spritetype *tspr)
|
||||||
mdspritematerial.detailscale[0] = mdspritematerial.detailscale[1] = sk->param;
|
mdspritematerial.detailscale[0] = mdspritematerial.detailscale[1] = sk->param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(tspr->cstat&1024))
|
||||||
|
{
|
||||||
|
mdspritematerial.specmap =
|
||||||
|
mdloadskin((md2model_t *)m,tile2model[Ptile2tile(tspr->picnum,lpal)].skinnum,SPECULARPAL,surfi);
|
||||||
|
}
|
||||||
|
|
||||||
if (!(tspr->cstat&1024))
|
if (!(tspr->cstat&1024))
|
||||||
{
|
{
|
||||||
mdspritematerial.normalmap =
|
mdspritematerial.normalmap =
|
||||||
|
|
Loading…
Reference in a new issue