mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Alpha blending in camera view for SURF_TRANS_100 and SURF_ALPHA_TEST.
This commit is contained in:
parent
b8317c4fa0
commit
55995d2488
1 changed files with 13 additions and 0 deletions
|
@ -3094,6 +3094,9 @@ void Brush_FaceDraw( face_t *face, int nGLState ){
|
|||
#define Q2_SURF_TRANS33 0x00000010
|
||||
#define Q2_SURF_TRANS66 0x00000020
|
||||
|
||||
#define QUETOO_SURF_TRANS100 0x00000040
|
||||
#define QUETOO_SURF_ALPHA_TEST 0x00000400
|
||||
|
||||
void Brush_Draw( brush_t *b ){
|
||||
face_t *face;
|
||||
int order;
|
||||
|
@ -3132,6 +3135,16 @@ void Brush_Draw( brush_t *b ){
|
|||
bTrans = true;
|
||||
transVal = 0.66f;
|
||||
}
|
||||
else if ( g_pGameDescription->mGameFile == "quetoo.game" ) {
|
||||
if ( face->texdef.flags & QUETOO_SURF_TRANS100 ) {
|
||||
bTrans = true;
|
||||
transVal = 1.f;
|
||||
}
|
||||
else if ( face->texdef.flags & QUETOO_SURF_ALPHA_TEST ) {
|
||||
bTrans = true;
|
||||
transVal = 1.f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( bTrans && !( nGLState & DRAW_GL_BLEND ) ) {
|
||||
|
|
Loading…
Reference in a new issue