- basics for using hardware clip planes to split translucent stuff by 3D floor planes.

This commit is contained in:
Christoph Oelckers 2015-04-05 18:55:21 +02:00
commit 45526c2769
4 changed files with 49 additions and 0 deletions

View file

@ -86,6 +86,7 @@ void FRenderState::Reset()
mSpecialEffect = EFF_NONE;
mClipHeightTop = 65536.f;
mClipHeightBottom = -65536.f;
ClearClipSplit();
stSrcBlend = stDstBlend = -1;
stBlendEquation = -1;
@ -141,6 +142,7 @@ bool FRenderState::ApplyShader()
activeShader->muTimer.Set(gl_frameMS * mShaderTimer / 1000.f);
activeShader->muAlphaThreshold.Set(mAlphaThreshold);
activeShader->muLightIndex.Set(mLightIndex); // will always be -1 for now
activeShader->muClipSplit.Set(mClipSplit);
if (mGlowEnabled)
{