deluxmap support added.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@761 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-07 03:10:11 +00:00
parent f7ed8da8ef
commit 0b4df80600

View file

@ -548,11 +548,20 @@ static void Shaderpass_Map ( shader_t *shader, shaderpass_t *pass, char **ptr )
char *token;
token = Shader_ParseString ( ptr );
if ( !Q_stricmp (token, "$lightmap") ) {
if ( !Q_stricmp (token, "$lightmap") )
{
pass->tcgen = TC_GEN_LIGHTMAP;
pass->flags |= SHADER_PASS_LIGHTMAP;
pass->anim_frames[0] = 0;
} else {
}
else if ( !Q_stricmp (token, "$deluxmap") )
{
pass->tcgen = TC_GEN_LIGHTMAP;
pass->flags |= SHADER_PASS_DELUXMAP;
pass->anim_frames[0] = 0;
}
else
{
flags = Shader_SetImageFlags ( shader );
pass->tcgen = TC_GEN_BASE;
@ -608,8 +617,8 @@ static void Shaderpass_ClampMap ( shader_t *shader, shaderpass_t *pass, char **p
pass->tcgen = TC_GEN_BASE;
pass->anim_frames[0] = Shader_FindImage ( token, flags | IT_CLAMP );
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
qglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
qglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
if ( !pass->anim_frames[0] ) {
pass->anim_frames[0] = 0;//fizme:r_notexture;