Browse Source

Fix: Shadow Bugs

master
laurids 2 years ago
parent
commit
3c13680414
3 changed files with 16 additions and 2 deletions
  1. +1
    -1
      Assets/GWConquest/Materials/Planets/Yeesveer.mat
  2. +13
    -0
      Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs
  3. +2
    -1
      ProjectSettings/ProjectSettings.asset

+ 1
- 1
Assets/GWConquest/Materials/Planets/Yeesveer.mat View File

@ -104,7 +104,7 @@ Material:
- _Citiesoffset: 0 - _Citiesoffset: 0
- _Cloudspeed: 1 - _Cloudspeed: 1
- _Cutoff: 0.588 - _Cutoff: 0.588
- _Desaturation: 0
- _Desaturation: 0.14
- _DetailNormalMapScale: 1 - _DetailNormalMapScale: 1
- _DstBlend: 0 - _DstBlend: 0
- _EmissionScale: 0 - _EmissionScale: 0


+ 13
- 0
Assets/Le Tai's Asset/TrueShadow/Scripts/ShadowSettingSnapshot.cs View File

@ -118,6 +118,19 @@ class ShadowSettingSnapshot
textureHash textureHash
); );
break; 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: default:
hash = commonHash; hash = commonHash;
break; break;


+ 2
- 1
ProjectSettings/ProjectSettings.asset View File

@ -152,7 +152,8 @@ PlayerSettings:
resolutionScalingMode: 0 resolutionScalingMode: 0
androidSupportedAspectRatio: 1 androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1 androidMaxAspectRatio: 2.1
applicationIdentifier: {}
applicationIdentifier:
Standalone: com.miucat.GalacticWarsConquest
buildNumber: buildNumber:
Standalone: 0 Standalone: 0
iPhone: 0 iPhone: 0


Loading…
Cancel
Save