Added support for deluxmaps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@754 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9528e73c96
commit
32f4b79893
2 changed files with 6 additions and 4 deletions
|
@ -17,6 +17,7 @@ typedef struct {
|
|||
gl_state_t gl_state;
|
||||
|
||||
extern int *lightmap_textures;
|
||||
extern int *deluxmap_textures;
|
||||
|
||||
void GL_SelectTexture (GLenum target)
|
||||
{
|
||||
|
@ -1755,10 +1756,10 @@ int R_ShaderpassTex ( shaderpass_t *pass )
|
|||
{
|
||||
return lightmap_textures[r_lmtex];
|
||||
}
|
||||
/* else if ( (pass->flags & SHADER_PASS_DELUXMAP) && r_lmtex >= 0 )
|
||||
else if ( (pass->flags & SHADER_PASS_DELUXMAP) && r_lmtex >= 0 )
|
||||
{
|
||||
return deluxmap_textures[r_lmtex];
|
||||
}*/
|
||||
}
|
||||
|
||||
return pass->anim_frames[0] ? pass->anim_frames[0] : 0;
|
||||
}
|
||||
|
|
|
@ -168,8 +168,9 @@ typedef struct shaderpass_s {
|
|||
SHADER_PASS_VIDEOMAP = 1 << 3,
|
||||
SHADER_PASS_DETAIL = 1 << 4,
|
||||
SHADER_PASS_LIGHTMAP = 1 << 5,
|
||||
SHADER_PASS_NOCOLORARRAY = 1<< 6,
|
||||
SHADER_PASS_ANIMMAP = 1 << 7
|
||||
SHADER_PASS_DELUXMAP = 1 << 6,
|
||||
SHADER_PASS_NOCOLORARRAY = 1<< 7,
|
||||
SHADER_PASS_ANIMMAP = 1 << 8
|
||||
} flags;
|
||||
} shaderpass_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue