mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix specpower and specfactor definitions for diffuse maps.
git-svn-id: https://svn.eduke32.com/eduke32@1526 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4a24bcc0ea
commit
58194cb281
1 changed files with 6 additions and 2 deletions
|
@ -1512,7 +1512,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
char *paltokptr = script->ltextptr, *palend;
|
||||
int32_t pal=-1, i;
|
||||
char *fn = NULL, *tfn = NULL;
|
||||
double alphacut = -1.0, xscale = 1.0, yscale = 1.0;
|
||||
double alphacut = -1.0, xscale = 1.0, yscale = 1.0, specpower = 1.0, specfactor = 1.0;
|
||||
char flags = 0;
|
||||
|
||||
if (scriptfile_getsymbol(script,&pal)) break;
|
||||
|
@ -1529,6 +1529,10 @@ static int32_t defsparser(scriptfile *script)
|
|||
scriptfile_getdouble(script,&xscale); break;
|
||||
case T_YSCALE:
|
||||
scriptfile_getdouble(script,&yscale); break;
|
||||
case T_SPECPOWER:
|
||||
scriptfile_getdouble(script,&specpower); break;
|
||||
case T_SPECFACTOR:
|
||||
scriptfile_getdouble(script,&specfactor); break;
|
||||
case T_NOCOMPRESS:
|
||||
flags |= 1; break;
|
||||
case T_NODOWNSIZE:
|
||||
|
@ -1572,7 +1576,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
xscale = 1.0f / xscale;
|
||||
yscale = 1.0f / yscale;
|
||||
|
||||
hicsetsubsttex(tile,pal,fn,alphacut,xscale,yscale, 1.0f, 1.0f,flags);
|
||||
hicsetsubsttex(tile,pal,fn,alphacut,xscale,yscale, specpower, specfactor,flags);
|
||||
}
|
||||
break;
|
||||
case T_DETAIL: case T_GLOW: case T_SPECULAR: case T_NORMAL:
|
||||
|
|
Loading…
Reference in a new issue