1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Support enableLOD config option.

This commit is contained in:
Sergey Lipskiy 2014-05-27 15:02:51 +07:00
parent fefe01d88d
commit 1b084dfd7b
5 changed files with 5 additions and 2 deletions

View File

@ -116,6 +116,7 @@ void Config_LoadConfig()
config.frameBufferEmulation.copyFromRDRAM = FALSE;
config.frameBufferEmulation.ignoreCFB = TRUE;
config.frameBufferEmulation.N64DepthCompare = FALSE;
config.enableLOD = TRUE;
}
void Config_SaveConfig()

View File

@ -17,7 +17,6 @@ struct Config
{
u32 maxAnisotropy;
u32 textureBitDepth;
u32 enableLOD;
u32 forceBilinear;
u32 enable2xSaI;
u32 pow2;
@ -34,6 +33,7 @@ struct Config
u32 enableFog;
u32 enableNoise;
u32 enableLOD;
u32 enableHWLighting;
};

View File

@ -474,6 +474,7 @@ void Config_LoadConfig()
config.frameBufferEmulation.copyFromRDRAM = FALSE;
config.frameBufferEmulation.ignoreCFB = TRUE;
config.frameBufferEmulation.N64DepthCompare = FALSE;
config.enableLOD = TRUE;
}
void Config_DoConfig()

View File

@ -34,6 +34,7 @@ Option configOptions[] =
{"#Emulation Settings:", NULL, 0},
{"enable fog", &config.enableFog, 1},
{"enable noise", &config.enableNoise, 1},
{"enable LOD", &config.enableLOD, 1},
{"enable HW lighting", &config.enableHWLighting, 0},
{"#Frame Buffer Settings:", NULL, 0},
{"enable hardware FB", &config.frameBufferEmulation.enable, 0},

View File

@ -606,7 +606,7 @@ void GLSLCombiner::UpdateColors(bool _bForce) {
_setFUniform(m_uniforms.uK5, gDP.convert.k5*0.0039215689f, _bForce);
if (combiner.usesLOD) {
int uCalcLOD = gDP.otherMode.textureLOD == G_TL_LOD ? 1 : 0;
int uCalcLOD = (config.enableLOD && gDP.otherMode.textureLOD == G_TL_LOD) ? 1 : 0;
_setIUniform(m_uniforms.uEnableLod, uCalcLOD, _bForce);
if (uCalcLOD) {
_setFUniform(m_uniforms.uLodXScale, OGL.scaleX, _bForce);