From 3c136804142462839336890326730a0197981449 Mon Sep 17 00:00:00 2001 From: laurids Date: Wed, 20 Oct 2021 23:10:38 +0200 Subject: [PATCH] Fix: Shadow Bugs --- Assets/GWConquest/Materials/Planets/Yeesveer.mat | 2 +- .../TrueShadow/Scripts/ShadowSettingSnapshot.cs | 13 +++++++++++++ ProjectSettings/ProjectSettings.asset | 3 ++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Assets/GWConquest/Materials/Planets/Yeesveer.mat b/Assets/GWConquest/Materials/Planets/Yeesveer.mat index 0001e20..302ebfc 100644 --- a/Assets/GWConquest/Materials/Planets/Yeesveer.mat +++ b/Assets/GWConquest/Materials/Planets/Yeesveer.mat @@ -104,7 +104,7 @@ Material: - _Citiesoffset: 0 - _Cloudspeed: 1 - _Cutoff: 0.588 - - _Desaturation: 0 + - _Desaturation: 0.14 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _EmissionScale: 0 diff --git a/Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs b/Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs index 85cd037..97c3073 100644 --- a/Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs +++ b/Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs @@ -118,6 +118,19 @@ class ShadowSettingSnapshot textureHash ); break; + case Text text: + var textHash = HashUtils.CombineHashCodes( + text.text.GetHashCode(), + text.font.GetHashCode(), + text.fontSize, + (int) text.lineSpacing * 100, + (int) text.alignment + ); + hash = HashUtils.CombineHashCodes( + commonHash, + textHash + ); + break; default: hash = commonHash; break; diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 1c6747a..ddc3ae5 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -152,7 +152,8 @@ PlayerSettings: resolutionScalingMode: 0 androidSupportedAspectRatio: 1 androidMaxAspectRatio: 2.1 - applicationIdentifier: {} + applicationIdentifier: + Standalone: com.miucat.GalacticWarsConquest buildNumber: Standalone: 0 iPhone: 0