- cleanup of the revised y-clamping feature.
This integrates better with the existing features.
This commit is contained in:
parent
6e2aef617c
commit
da806b354d
9 changed files with 32 additions and 25 deletions
|
|
@ -124,9 +124,7 @@ bool FGLRenderState::ApplyShader()
|
|||
activeShader->muDesaturation.Set(mStreamData.uDesaturationFactor);
|
||||
activeShader->muFogEnabled.Set(fogset);
|
||||
|
||||
int f = mTextureModeFlags;
|
||||
if (!mBrightmapEnabled) f &= ~(TEXF_Brightmap | TEXF_Glowmap);
|
||||
activeShader->muTextureMode.Set((mTextureMode == TM_NORMAL && mTempTM == TM_OPAQUE ? TM_OPAQUE : mTextureMode) | f);
|
||||
activeShader->muTextureMode.Set(GetTextureModeAndFlags(mTempTM));
|
||||
activeShader->muLightParms.Set(mLightParms);
|
||||
activeShader->muFogColor.Set(mStreamData.uFogColor);
|
||||
activeShader->muObjectColor.Set(mStreamData.uObjectColor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue