Skip to content

Commit 59b31b9

Browse files
committed
Update to v0.9.14
1 parent 6db8dbe commit 59b31b9

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

Config/LightingConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ internal bool DrawOverbright() =>
4040
internal bool OverbrightOverrideBackground() =>
4141
SmoothLightingEnabled()
4242
&& DrawOverbright()
43+
&& SettingsSystem.AllowPostProcessing()
4344
&& FancyLightingMod._doingFilterManagerCapture;
4445

4546
internal bool HiDefFeaturesEnabled() =>

FancyLighting.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<LangVersion>latest</LangVersion>
99
<Title>Fancy Lighting</Title>
1010
<Authors>RandomComputerUser</Authors>
11-
<AssemblyVersion>0.9.13</AssemblyVersion>
12-
<Version>0.9.13</Version>
11+
<AssemblyVersion>0.9.14</AssemblyVersion>
12+
<Version>0.9.14</Version>
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<PackageReference Include="tModLoader.CodeAssist" Version="0.1.*" />

FancyLightingMod.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,10 @@ Color clearColor
537537
{
538538
_doingFilterManagerCapture = false;
539539

540-
if (!SettingsSystem.NeedsPostProcessing())
540+
if (
541+
(!SettingsSystem.AllowPostProcessing() && !_inCameraMode)
542+
|| !SettingsSystem.NeedsPostProcessing()
543+
)
541544
{
542545
orig(self, finalTexture, screenTarget1, screenTarget2, clearColor);
543546
return;

Localization/en-US_Mods.FancyLighting.Configs.hjson

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ LightingConfig: {
218218
'''
219219
Toggles whether to use smooth lighting
220220
When disabled, vanilla lighting visuals are used
221-
Smooth lighting is primarily GPU intensive
221+
[c/00FFFF:Primarily affected by single-threaded CPU and GPU performance]
222222
'''
223223
}
224224

@@ -278,7 +278,7 @@ LightingConfig: {
278278
'''
279279
Toggles whether to use ambient occlusion
280280
When enabled, tiles produce shadows in front of walls
281-
Ambient occlusion is primarily GPU intensive
281+
[c/00FFFF:Primarily affected by GPU performance]
282282
'''
283283
}
284284

@@ -311,8 +311,7 @@ LightingConfig: {
311311
Toggles whether to use a new lighting engine
312312
When enabled, light is spread more accurately with noticeable shadows
313313
Performance is affected by the number of light sources in the scene
314-
Lighting performance is affected primarily by the CPU; the GPU is not used
315-
The fancy lighting engine is primarily CPU intensive
314+
[c/00FFFF:Primarily affected by multithreaded CPU performance]
316315
'''
317316
}
318317

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ This mod is not endorsed by the creators of either Terraria or tModLoader.
99

1010
## Latest Version
1111

12-
**v0.9.13 (2025-03-15)**
13-
- Made ambient occlusion softer by default
14-
- Increased the default bloom strength
12+
**v0.9.14 (2025-03-18)**
13+
- Fixed a bug that occurred when shaders were active on the main menu
14+
- Corrected some false information in the settings tooltips

SettingsSystem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ internal static void EnsureRenderTargets(bool reset = false)
7979
TextureUtils.EnsureFormat(ref Main.screenTargetSwap, format);
8080
}
8181

82+
internal static bool AllowPostProcessing() =>
83+
!(Main.gameMenu || Main.mapFullscreen || Main.drawToScreen);
84+
8285
internal static bool NeedsPostProcessing() =>
8386
PreferencesConfig.Instance is not null
8487
&& LightingConfig.Instance is not null
@@ -89,7 +92,6 @@ PreferencesConfig.Instance is not null
8992
LightingConfig.Instance.SmoothLightingEnabled()
9093
&& LightingConfig.Instance.DrawOverbright()
9194
)
92-
|| LightingConfig.Instance.HiDefFeaturesEnabled()
9395
);
9496

9597
internal static bool HdrCompatibilityEnabled() =>

build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
displayName = Fancy Lighting
22
author = RandomComputerUser
3-
version = 0.9.13
3+
version = 0.9.14
44
side = Client
55
homepage = https://github.com/RandomComputerUser/FancyLighting
66
buildIgnore = description_workshop.txt, icon_workshop.png, obj/*, packages/*, Properties/*, README.md, *.sln.DotSettings.user

0 commit comments

Comments
 (0)