Skip to content

Commit

Permalink
TUFX ready to be injected as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodrigv committed Mar 24, 2021
1 parent e0af96b commit 1dd1b5b
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 9 deletions.
Binary file modified GameData/TUFX/Plugins/TUFX.dll
Binary file not shown.
Binary file modified GameData/TUFX/Plugins/TUFX.pdb
Binary file not shown.
5 changes: 4 additions & 1 deletion Plugin/TUFX/Addon/TexturesUnlimitedFXLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TUFX.PostProcessing;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;

Expand Down Expand Up @@ -62,7 +63,7 @@ public class TexturesUnlimitedFXLoader : MonoBehaviour
/// Reference to the Unity Post Processing 'Resources' class. Used to store references to the shaders and textures used by the post-processing system internals.
/// Does not include references to the 'included' but 'external' resources such as the built-in lens-dirt textures or any custom LUTs.
/// </summary>
public PostProcessResources Resources { get; private set; }
public static PostProcessResources Resources { get; private set; }

public void Start()
{
Expand Down Expand Up @@ -558,6 +559,8 @@ internal void enableProfile(string profileName)
{
currentProfile = null;
Camera activeCam = getActiveCamera();


Log.debug("TUFX: enableProfile( " + profileName + " ) scene: ( "+HighLogic.LoadedScene+" ) map: ( "+isMapScene+" ) camera: ( "+activeCam?.name+" )");
Log.debug(System.Environment.StackTrace);
if (previousCamera != activeCam)
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/GUI/ConfigurationGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Reflection;
using System.Text;
using TUFX.PostProcessing;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;

Expand Down
2 changes: 2 additions & 0 deletions Plugin/TUFX/PostProcessing/PostProcessDebug.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using TUFX.PostProcessing;

namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions Plugin/TUFX/PostProcessing/PostProcessEffectRenderer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using TUFX.PostProcessing;

namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
Expand Down
5 changes: 4 additions & 1 deletion Plugin/TUFX/PostProcessing/PostProcessLayer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.Rendering;
using UnityEngine.Rendering.PostProcessing;

namespace UnityEngine.Rendering.PostProcessing
namespace TUFX.PostProcessing
{
#if UNITY_2017_2_OR_NEWER && ENABLE_VR
using XRSettings = UnityEngine.XR.XRSettings;
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/PostProcessing/PostProcessManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using TUFX.PostProcessing;
using UnityEngine.Assertions;

namespace UnityEngine.Rendering.PostProcessing
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/PostProcessing/PostProcessRenderContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using TUFX.PostProcessing;

namespace UnityEngine.Rendering.PostProcessing
{
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/PostProcessing/Utils/RuntimeUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using TUFX.PostProcessing;
using UnityEngine.Assertions;

#if UNITY_EDITOR
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/Scattering/TUFXScatteringManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TUFX.PostProcessing;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;

Expand Down
15 changes: 8 additions & 7 deletions Plugin/TUFX/TUFX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TUFX</RootNamespace>
<AssemblyName>TUFX</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -32,7 +33,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -43,19 +44,19 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine.AnimationModule">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\UnityEngine.AnimationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>G:\GAMES\KERBAL\Kerbal Space Program_191_RSS\KSP_x64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
<HintPath>E:\REPOSITORIO\_LocalDev\KSPRefs\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Plugin/TUFX/TUFXProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using TUFX.PostProcessing;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;

Expand Down

0 comments on commit 1dd1b5b

Please sign in to comment.