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:
parent
fefe01d88d
commit
1b084dfd7b
|
@ -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()
|
||||
|
|
2
Config.h
2
Config.h
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user