mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Initial implementation of the new Base Game Template and some starting modules.
This makes some tweaks to the engine to support this, specifically, it tweaks the hardcoded shaderpaths to defer to a pref variable, so none of the shader paths are hardcoded. Also tweaks how post effects read in texture files, removing a bizzare filepath interpretation choice, where if the file path didn't start with "/" it forcefully appended the script's file path. This made it impossible to have images not in the same dir as the script file defining the post effect. This was changed and the existing template's post effects tweaked for now to just add "./" to those few paths impacted, as well as the perf vars to support the non-hardcoded shader paths in the engine.
This commit is contained in:
parent
5c8a82180b
commit
d680dc9934
2321 changed files with 296541 additions and 85 deletions
14
Templates/Full/game/Full.torsion.opt
Normal file
14
Templates/Full/game/Full.torsion.opt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<TorsionProjectOptions>
|
||||
<Address>127.0.0.1</Address>
|
||||
<Password>password</Password>
|
||||
<Port>6060</Port>
|
||||
<LastConfig>Debug</LastConfig>
|
||||
<Breakpoints/>
|
||||
<Bookmarks/>
|
||||
<OpenFiles>
|
||||
<File ScrollX="0" ScrollY="0">art\main.cs</File>
|
||||
<File ScrollX="0" ScrollY="9">core\main.cs</File>
|
||||
<File ScrollX="0" ScrollY="9" Active="true">..\..\Empty\game\core\main.cs</File>
|
||||
<File ScrollX="0" ScrollY="15">..\..\BaseGame\game\core\main.cs</File>
|
||||
</OpenFiles>
|
||||
</TorsionProjectOptions>
|
||||
|
|
@ -28,6 +28,12 @@ $WORD::BITDEPTH = 3;
|
|||
$WORD::REFRESH = 4;
|
||||
$WORD::AA = 5;
|
||||
|
||||
//We need to hook the missing/warn material stuff early, so do it here
|
||||
$Core::MissingTexturePath = "core/art/missingTexture";
|
||||
$Core::UnAvailableTexturePath = "core/art/unavailable";
|
||||
$Core::WarningTexturePath = "core/art/warnMat";
|
||||
$Core::CommonShaderPath = "shaders/common";
|
||||
|
||||
//---------------------------------------------------------------------------------------------
|
||||
// CorePackage
|
||||
// Adds functionality for this mod to some standard functions.
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ singleton PostEffect( MLAAFx )
|
|||
|
||||
texture[0] = "$inTex"; // Edges mask
|
||||
texture[1] = "$inTex"; // Edges mask
|
||||
texture[2] = "AreaMap33.dds";
|
||||
texture[2] = "./AreaMap33.dds";
|
||||
};
|
||||
|
||||
new PostEffect()
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ singleton PostEffect( CausticsPFX )
|
|||
shader = PFX_CausticsShader;
|
||||
stateBlock = PFX_CausticsStateBlock;
|
||||
texture[0] = "#prepass";
|
||||
texture[1] = "textures/caustics_1";
|
||||
texture[2] = "textures/caustics_2";
|
||||
texture[1] = "./textures/caustics_1";
|
||||
texture[2] = "./textures/caustics_2";
|
||||
target = "$backBuffer";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ singleton PostEffect( SSAOPostFx )
|
|||
stateBlock = SSAOStateBlock;
|
||||
|
||||
texture[0] = "#prepass";
|
||||
texture[1] = "noise.png";
|
||||
texture[1] = "./noise.png";
|
||||
texture[2] = "#ssao_pow_table";
|
||||
|
||||
target = "$outTex";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue