mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Merge branch 'ogl-fog-block-fix' into 'next'
Don't discard zero alpha fog block fragments. Fixes #198. Closes #198 See merge request STJr/SRB2!1084
This commit is contained in:
commit
b45bd6990e
1 changed files with 1 additions and 1 deletions
|
@ -1535,7 +1535,7 @@ EXPORT void HWRAPI(SetBlend) (FBITFIELD PolyFlags)
|
||||||
// Sryder: Fog
|
// Sryder: Fog
|
||||||
// multiplies input colour by input alpha, and destination colour by input colour, then adds them
|
// multiplies input colour by input alpha, and destination colour by input colour, then adds them
|
||||||
pglBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR);
|
pglBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR);
|
||||||
pglAlphaFunc(GL_NOTEQUAL, 0.0f);
|
pglAlphaFunc(GL_ALWAYS, 0.0f); // Don't discard zero alpha fragments
|
||||||
break;
|
break;
|
||||||
default : // must be 0, otherwise it's an error
|
default : // must be 0, otherwise it's an error
|
||||||
// No blending
|
// No blending
|
||||||
|
|
Loading…
Reference in a new issue