mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Added new GL states
This commit is contained in:
parent
c91f8f4338
commit
e0ba08b3f9
1 changed files with 14 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
Doom 3 BFG Edition GPL Source Code
|
||||
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
|
||||
Copyright (C) 2016-2017 Dustin Land
|
||||
|
||||
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
|
||||
|
||||
|
@ -70,6 +71,12 @@ static const uint64 GLS_DEPTHFUNC_GREATER = 2 << 13;
|
|||
static const uint64 GLS_DEPTHFUNC_EQUAL = 3 << 13;
|
||||
static const uint64 GLS_DEPTHFUNC_BITS = 3 << 13;
|
||||
|
||||
static const uint64 GLS_CULL_FRONTSIDED = 0 << 15;
|
||||
static const uint64 GLS_CULL_BACKSIDED = 1 << 15;
|
||||
static const uint64 GLS_CULL_TWOSIDED = 2 << 15;
|
||||
static const uint64 GLS_CULL_BITS = 2 << 15;
|
||||
static const uint64 GLS_CULL_MASK = GLS_CULL_FRONTSIDED | GLS_CULL_BACKSIDED | GLS_CULL_TWOSIDED;
|
||||
|
||||
static const uint64 GLS_BLENDOP_ADD = 0 << 18;
|
||||
static const uint64 GLS_BLENDOP_SUB = 1 << 18;
|
||||
static const uint64 GLS_BLENDOP_MIN = 2 << 18;
|
||||
|
@ -138,9 +145,15 @@ static const uint64 GLS_ALPHATEST_FUNC_BITS = 3ull << 56;
|
|||
|
||||
static const uint64 GLS_STENCIL_OP_BITS = GLS_STENCIL_OP_FAIL_BITS | GLS_STENCIL_OP_ZFAIL_BITS | GLS_STENCIL_OP_PASS_BITS;
|
||||
|
||||
static const uint64 GLS_DEPTH_TEST_MASK = 1ull << 58;
|
||||
static const uint64 GLS_CLOCKWISE = 1ull << 59;
|
||||
static const uint64 GLS_SEPARATE_STENCIL = 1ull << 60;
|
||||
static const uint64 GLS_MIRROR_VIEW = 1ull << 61;
|
||||
|
||||
static const uint64 GLS_OVERRIDE = 1ull << 63; // override the render prog state
|
||||
|
||||
static const uint64 GLS_DEFAULT = 0;
|
||||
static const uint64 GLS_KEEP = GLS_DEPTH_TEST_MASK;
|
||||
static const uint64 GLS_DEFAULT = 0;
|
||||
|
||||
#define STENCIL_SHADOW_TEST_VALUE 128
|
||||
#define STENCIL_SHADOW_MASK_VALUE 255
|
||||
|
|
Loading…
Reference in a new issue