mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #880 from Areloch/FullscreenFix_and_BloomPref
Fullscreen 'Fix' and Bloom Pref
This commit is contained in:
commit
70081f01b9
5 changed files with 17 additions and 4 deletions
|
|
@ -54,7 +54,10 @@ $WORD::FULLSCREEN = 2;
|
||||||
$WORD::BITDEPTH = 3;
|
$WORD::BITDEPTH = 3;
|
||||||
$WORD::REFRESH = 4;
|
$WORD::REFRESH = 4;
|
||||||
$WORD::AA = 5;
|
$WORD::AA = 5;
|
||||||
$Video::ModeTags = "Windowed\tBorderless\tFullscreen";
|
if($platform $= "windows")
|
||||||
|
$Video::ModeTags = "Windowed\tBorderless";
|
||||||
|
else
|
||||||
|
$Video::ModeTags = "Windowed\tBorderless\tFullscreen";
|
||||||
$Video::ModeWindowed = 0;
|
$Video::ModeWindowed = 0;
|
||||||
$Video::ModeBorderless = 1;
|
$Video::ModeBorderless = 1;
|
||||||
$Video::ModeFullscreen = 2;
|
$Video::ModeFullscreen = 2;
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,7 @@ function HDRPostFX::setShaderConsts( %this )
|
||||||
|
|
||||||
// /----- BLOOM CONSTS -----/
|
// /----- BLOOM CONSTS -----/
|
||||||
%bloom = %this->hdrbloom;
|
%bloom = %this->hdrbloom;
|
||||||
%bloom.skip = !$PostFX::HDRPostFX::enableBloom;
|
%bloom.skip = (!$PostFX::HDRPostFX::enableBloom || !$pref::PostFX::EnableHDRBloom);
|
||||||
|
|
||||||
%bloom.setShaderConst("$threshold", $PostFX::HDRPostFX::threshold);
|
%bloom.setShaderConst("$threshold", $PostFX::HDRPostFX::threshold);
|
||||||
|
|
||||||
|
|
@ -305,7 +305,7 @@ function HDRPostFX::setShaderConsts( %this )
|
||||||
}
|
}
|
||||||
|
|
||||||
%strength = $PostFX::HDRPostFX::intensity;
|
%strength = $PostFX::HDRPostFX::intensity;
|
||||||
if (!$PostFX::HDRPostFX::enableBloom)
|
if (!$PostFX::HDRPostFX::enableBloom || !$pref::PostFX::EnableHDRBloom)
|
||||||
%strength = 0.0;
|
%strength = 0.0;
|
||||||
|
|
||||||
%bloomFinal = %this->hdrbloom_end;
|
%bloomFinal = %this->hdrbloom_end;
|
||||||
|
|
|
||||||
|
|
@ -599,6 +599,7 @@ new SimGroup( ShaderQualityGroup )
|
||||||
|
|
||||||
key["$pref::Video::disablePixSpecular"] = false;
|
key["$pref::Video::disablePixSpecular"] = false;
|
||||||
key["$pref::Video::disableNormalmapping"] = false;
|
key["$pref::Video::disableNormalmapping"] = false;
|
||||||
|
key["$pref::PostFX::EnableHDRBloom"] = true;
|
||||||
};
|
};
|
||||||
new ArrayObject()
|
new ArrayObject()
|
||||||
{
|
{
|
||||||
|
|
@ -609,6 +610,7 @@ new SimGroup( ShaderQualityGroup )
|
||||||
|
|
||||||
key["$pref::Video::disablePixSpecular"] = true;
|
key["$pref::Video::disablePixSpecular"] = true;
|
||||||
key["$pref::Video::disableNormalmapping"] = true;
|
key["$pref::Video::disableNormalmapping"] = true;
|
||||||
|
key["$pref::PostFX::EnableHDRBloom"] = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -538,6 +538,12 @@ function updateGraphicsSettings()
|
||||||
DecalLifetimeGroup.applySetting($pref::Graphics::DecalLifetime);
|
DecalLifetimeGroup.applySetting($pref::Graphics::DecalLifetime);
|
||||||
if($pref::Graphics::GroundCoverDensity !$= getCurrentQualityLevel(GroundCoverDensityGroup))
|
if($pref::Graphics::GroundCoverDensity !$= getCurrentQualityLevel(GroundCoverDensityGroup))
|
||||||
GroundCoverDensityGroup.applySetting($pref::Graphics::GroundCoverDensity);
|
GroundCoverDensityGroup.applySetting($pref::Graphics::GroundCoverDensity);
|
||||||
|
if($pref::Graphics::ShaderQuality !$= getCurrentQualityLevel(ShaderQualityGroup))
|
||||||
|
{
|
||||||
|
ShaderQualityGroup.applySetting($pref::Graphics::ShaderQuality);
|
||||||
|
//this has ties into postFX behaviors, so we'll force an update to it here
|
||||||
|
updatePostFXSettings();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDisplaySettings()
|
function updateDisplaySettings()
|
||||||
|
|
|
||||||
|
|
@ -208,3 +208,5 @@ $pref::PostFX::EnableVignette = 1;
|
||||||
$pref::PostFX::EnableLightRays = 1;
|
$pref::PostFX::EnableLightRays = 1;
|
||||||
$pref::PostFX::EnableHDR = 1;
|
$pref::PostFX::EnableHDR = 1;
|
||||||
$pref::PostFX::EnableSSAO = 1;
|
$pref::PostFX::EnableSSAO = 1;
|
||||||
|
|
||||||
|
$pref::PostFX::EnableHDRBloom = 1;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue