mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Merge remote-tracking branch 'refs/remotes/upstream/development'
Conflicts: Templates/BaseGame/game/core/postFX/scripts/default.postfxpreset.tscript
This commit is contained in:
commit
606da2e8ba
20 changed files with 94 additions and 96 deletions
|
|
@ -45,12 +45,12 @@ function clientCmdMissionStartPhase1_LoadCache(%seq, %levelAsset)
|
|||
{
|
||||
if ($pref::Client::EnableDatablockCache && $loadFromDatablockCache)
|
||||
{
|
||||
if (!$pref::Video::disableVerticalSync)
|
||||
if ($pref::Video::enableVerticalSync)
|
||||
{
|
||||
warn("Disabling Vertical Sync during datablock cache load to avoid significant slowdown.");
|
||||
$AFX_tempDisableVSync = true;
|
||||
|
||||
$pref::Video::disableVerticalSync = true;
|
||||
$pref::Video::enableVerticalSync = false;
|
||||
Canvas.resetVideoMode();
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ function updateLoadDatablockCacheProgress(%seq, %levelAsset)
|
|||
warn("Restoring Vertical Sync setting.");
|
||||
$AFX_tempDisableVSync = false;
|
||||
|
||||
$pref::Video::disableVerticalSync = false;
|
||||
$pref::Video::enableVerticalSync = true;
|
||||
Canvas.resetVideoMode();
|
||||
}
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ function updateLoadDatablockCacheProgress(%seq, %levelAsset)
|
|||
warn("Restoring Vertical Sync setting.");
|
||||
$AFX_tempDisableVSync = false;
|
||||
|
||||
$pref::Video::disableVerticalSync = false;
|
||||
$pref::Video::enableVerticalSync = true;
|
||||
Canvas.resetVideoMode();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<<<<<<< HEAD
|
||||
$PostFX::BloomPostFX::Enabled = "1";
|
||||
$PostFX::BloomPostFX::threshold = "0.5";
|
||||
$PostFX::BloomPostFX::intensity = "0.5";
|
||||
|
|
@ -19,6 +20,8 @@ $PostFX::HDRPostFX::minLuminace = "0.001";
|
|||
$PostFX::HDRPostFX::adaptRate = "0.85";
|
||||
$PostFX::HDRPostFX::tonemapMode = "ACES";
|
||||
$PostFX::HDRPostFX::enableBloom = "1";
|
||||
=======
|
||||
>>>>>>> development
|
||||
$PostFX::HDRPostFX::brightPassThreshold = "0.02";
|
||||
$PostFX::HDRPostFX::gaussMultiplier = "0.4";
|
||||
$PostFX::HDRPostFX::enableAutoExposure = "1";
|
||||
|
|
|
|||
|
|
@ -50,6 +50,13 @@ function postFXInit()
|
|||
|
||||
while( %file !$= "" )
|
||||
{
|
||||
//we need to make sure we don't inadvertently forcefully exec the default postfx preset
|
||||
if(fileName(%file) $= "default.postfxpreset.tscript")
|
||||
{
|
||||
%file = findNextFile( %pattern );
|
||||
continue;
|
||||
}
|
||||
|
||||
exec( %file );
|
||||
%file = findNextFile( %pattern );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -678,8 +678,8 @@ function AutodetectGraphics_Apply(%shaderVer, %intel, %videoMem )
|
|||
|
||||
$pref::Shadows::useShadowCaching = true;
|
||||
|
||||
$pref::Water::disableTrueReflections = true;
|
||||
$pref::Video::disableParallaxMapping = true;
|
||||
$pref::Water::enableTrueReflections = false;
|
||||
$pref::Video::enableParallaxMapping = false;
|
||||
$pref::PostFX::EnableSSAO = false;
|
||||
$pref::PostFX::EnableHDR = false;
|
||||
$pref::PostFX::EnableDOF = false;
|
||||
|
|
@ -704,8 +704,8 @@ function AutodetectGraphics_Apply(%shaderVer, %intel, %videoMem )
|
|||
|
||||
$pref::Shadows::useShadowCaching = true;
|
||||
|
||||
$pref::Water::disableTrueReflections = true;
|
||||
$pref::Video::disableParallaxMapping = true;
|
||||
$pref::Water::enableTrueReflections = false;
|
||||
$pref::Video::enableParallaxMapping = false;
|
||||
$pref::PostFX::EnableSSAO = false;
|
||||
$pref::PostFX::EnableHDR = false;
|
||||
$pref::PostFX::EnableDOF = false;
|
||||
|
|
@ -734,8 +734,8 @@ function AutodetectGraphics_Apply(%shaderVer, %intel, %videoMem )
|
|||
//Should this default to on in ultra settings?
|
||||
$pref::Shadows::useShadowCaching = true;
|
||||
|
||||
$pref::Water::disableTrueReflections = false;
|
||||
$pref::Video::disableParallaxMapping = false;
|
||||
$pref::Water::enableTrueReflections = true;
|
||||
$pref::Video::enableParallaxMapping = true;
|
||||
$pref::PostFX::EnableSSAO = true;
|
||||
$pref::PostFX::EnableHDR = true;
|
||||
$pref::PostFX::EnableDOF = true;
|
||||
|
|
@ -760,8 +760,8 @@ function AutodetectGraphics_Apply(%shaderVer, %intel, %videoMem )
|
|||
|
||||
$pref::Shadows::useShadowCaching = true;
|
||||
|
||||
$pref::Water::disableTrueReflections = false;
|
||||
$pref::Video::disableParallaxMapping = true;
|
||||
$pref::Water::enableTrueReflections = true;
|
||||
$pref::Video::enableParallaxMapping = true;
|
||||
$pref::PostFX::EnableSSAO = false;
|
||||
$pref::PostFX::EnableHDR = true;
|
||||
$pref::PostFX::EnableDOF = true;
|
||||
|
|
@ -789,8 +789,8 @@ function AutodetectGraphics_Apply(%shaderVer, %intel, %videoMem )
|
|||
|
||||
$pref::Shadows::useShadowCaching = true;
|
||||
|
||||
$pref::Water::disableTrueReflections = false;
|
||||
$pref::Video::disableParallaxMapping = true;
|
||||
$pref::Water::enableTrueReflections = true;
|
||||
$pref::Video::enableParallaxMapping = true;
|
||||
$pref::PostFX::EnableSSAO = false;
|
||||
$pref::PostFX::EnableHDR = false;
|
||||
$pref::PostFX::EnableDOF = false;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ $pref::Input::JoystickEnabled = 0;
|
|||
// Set directory paths for various data or default images.
|
||||
$pref::Video::ProfilePath = "core/rendering/scripts/gfxprofile";
|
||||
|
||||
$pref::Video::disableVerticalSync = 1;
|
||||
$pref::Video::enableVerticalSync = 0;
|
||||
$pref::Video::mode = "1920 1080 false 32 60 4";
|
||||
$pref::Video::defaultFenceCount = 0;
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ $pref::Video::disableHardwareAA = true;
|
|||
$pref::Video::disableNormalmapping = false;
|
||||
$pref::Video::disablePixSpecular = false;
|
||||
$pref::Video::disableCubemapping = false;
|
||||
$pref::Video::disableParallaxMapping = false;
|
||||
$pref::Video::enableParallaxMapping = true;
|
||||
|
||||
// The number of mipmap levels to drop on loaded textures to reduce video memory
|
||||
// usage. It will skip any textures that have been defined as not allowing down
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ function populateDisplaySettingsList()
|
|||
OptionsMenuSettingsList.addOptionRow("Resolution", "$pref::Video::Resolution", %resolutionList, false, "", true, "Resolution of the game window", %resolution);
|
||||
}
|
||||
|
||||
OptionsMenuSettingsList.addOptionBoolRow("VSync", "$pref::Video::disableVerticalSync", $yesNoList, false, "", true, "", "");
|
||||
OptionsMenuSettingsList.addOptionBoolRow("VSync", "$pref::Video::enableVerticalSync", $YesNoList, false, "", true, "", "");
|
||||
|
||||
|
||||
%refreshList = getScreenRefreshList($pref::Video::mode);
|
||||
|
|
@ -504,8 +504,8 @@ function populateGraphicsSettingsList()
|
|||
OptionsMenuSettingsList.addOptionRow("Anisotropic Filtering", "$pref::Video::defaultAnisotropy", %anisoFilter, false, "", true, "Amount of Anisotropic Filtering on textures, which dictates their sharpness at a distance");
|
||||
OptionsMenuSettingsList.addOptionRow("Anti-Aliasing", "$pref::Video::AA", %aaFilter, false, "", true, "Amount of Post-Processing Anti-Aliasing applied to rendering");
|
||||
|
||||
OptionsMenuSettingsList.addOptionBoolRow("Parallax", "$pref::Video::disableParallaxMapping", %onOffList, false, "", true, "Whether the surface parallax shader effect is enabled", "");
|
||||
OptionsMenuSettingsList.addOptionBoolRow("Water Reflections", "$pref::Water::disableTrueReflections", %onOffList, false, "", true, "Whether water reflections are enabled", "");
|
||||
OptionsMenuSettingsList.addOptionBoolRow("Parallax", "$pref::Video::enableParallaxMapping", %onOffList, false, "", true, "Whether the surface parallax shader effect is enabled", "");
|
||||
OptionsMenuSettingsList.addOptionBoolRow("Water Reflections", "$pref::Water::enableTrueReflections", %onOffList, false, "", true, "Whether water reflections are enabled", "");
|
||||
|
||||
OptionsMenuSettingsList.addOptionBoolRow("SSAO", "$pref::PostFX::EnableSSAO", %onOffList, false, "", true, "Whether Screen-Space Ambient Occlusion is enabled");
|
||||
OptionsMenuSettingsList.addOptionBoolRow("Depth of Field", "$pref::PostFX::EnableDOF", %onOffList, false, "", true, "Whether the Depth of Field effect is enabled");
|
||||
|
|
@ -581,7 +581,7 @@ function updateDisplaySettings()
|
|||
%newBpp = 32; // ... its not 1997 anymore.
|
||||
%newFullScreen = %deviceModeName $= "Fullscreen" ? true : false;
|
||||
%newRefresh = $pref::Video::RefreshRate;
|
||||
%newVsync = !$pref::Video::disableVerticalSync;
|
||||
%newVsync = $pref::Video::enableVerticalSync;
|
||||
%newFSAA = $pref::Video::AA;
|
||||
|
||||
// Build the final mode string.
|
||||
|
|
@ -589,7 +589,7 @@ function updateDisplaySettings()
|
|||
|
||||
// Change the video mode.
|
||||
if ( %newMode !$= $pref::Video::mode || %newDeviceID != $pref::Video::deviceId ||
|
||||
%newVsync != $pref::Video::disableVerticalSync || %newDeviceMode != $pref::Video::deviceMode)
|
||||
%newVsync != $pref::Video::enableVerticalSync || %newDeviceMode != $pref::Video::deviceMode)
|
||||
{
|
||||
//****Edge Case Hack
|
||||
// If we're in fullscreen mode and switching to a different monitor at the
|
||||
|
|
@ -607,7 +607,7 @@ function updateDisplaySettings()
|
|||
}
|
||||
|
||||
$pref::Video::mode = %newMode;
|
||||
$pref::Video::disableVerticalSync = %newVsync;
|
||||
$pref::Video::enableVerticalSync = %newVsync;
|
||||
$pref::Video::deviceId = %newDeviceID;
|
||||
$pref::Video::deviceMode = %newDeviceMode;
|
||||
$pref::Video::Resolution = %newRes;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ $sceneLighting::purgeMethod = "lastCreated";
|
|||
$sceneLighting::cacheLighting = 1;
|
||||
|
||||
$pref::Video::displayDevice = ($platform $= "windows") ? "D3D11" : "OpenGL";
|
||||
$pref::Video::disableVerticalSync = 1;
|
||||
$pref::Video::enableVerticalSync = 0;
|
||||
$pref::Video::defaultFenceCount = 0;
|
||||
$pref::Video::screenShotSession = 0;
|
||||
$pref::Video::screenShotFormat = "PNG";
|
||||
|
|
@ -50,7 +50,7 @@ $pref::Video::disablePixSpecular = false;
|
|||
$pref::Video::disableCubemapping = false;
|
||||
|
||||
///
|
||||
$pref::Video::disableParallaxMapping = false;
|
||||
$pref::Video::enableParallaxMapping = true;
|
||||
|
||||
$pref::Video::Gamma = 2.2;
|
||||
$pref::Video::Contrast = 1.0;
|
||||
|
|
@ -137,7 +137,7 @@ $pref::Reflect::refractTexScale = 1.0;
|
|||
$pref::Reflect::frameLimitMS = 10;
|
||||
|
||||
/// Set true to force all water objects to use static cubemap reflections.
|
||||
$pref::Water::disableTrueReflections = false;
|
||||
$pref::Water::enableTrueReflections = true;
|
||||
|
||||
// A global LOD scalar which can reduce the overall density of placed GroundCover.
|
||||
$pref::GroundCover::densityScale = 1.0;
|
||||
|
|
|
|||
|
|
@ -111,13 +111,13 @@ function GuiInspectorVariableGroup::buildRangeField(%this, %fieldName, %fieldLab
|
|||
|
||||
function guiInspectorRangeField::onResize(%this)
|
||||
{
|
||||
echo("RESIIIIIIIIIIIZED");
|
||||
}
|
||||
|
||||
function guiInspectorRangeFieldText::onReturn(%this)
|
||||
{
|
||||
%value = %this.getText();
|
||||
%this.sliderControl.setValue(%value);
|
||||
%this.sliderControl.onDragComplete();
|
||||
}
|
||||
|
||||
function guiInspectorRangeFieldSlider::onDragComplete( %this )
|
||||
|
|
@ -141,4 +141,9 @@ function guiInspectorRangeFieldSlider::onDragComplete( %this )
|
|||
}
|
||||
|
||||
eval(%setCommand);
|
||||
}
|
||||
|
||||
function guiInspectorRangeFieldSlider::onMouseDragged(%this)
|
||||
{
|
||||
%this.onDragComplete();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue