From 204cbd6a8f9a6ceb096e27d6966e7bd6a6a93308 Mon Sep 17 00:00:00 2001 From: WarwickAllison Date: Mon, 10 Apr 2017 09:40:29 +1000 Subject: [PATCH] Fix Issue #4 - Artifacts around landing gear - Shadows. Should also fix other transparent objects. Third-party mods with similar problems with semi-transparent materials should ensure such objects are not on one of the shadowed layers, which are: Default = 0 Water = 4 Kerbals = 16 Parts = 19 In particular, transparent lighting effects should be on layer: TransparentFX = 1 It is however perfectly fine for "solid" transparent objects such as glass to be shadowed; just be aware that the entire geometry gets shadow applied, not just the opaque areas. --- Atmosphere/Clouds2D.cs | 3 +-- LocalSetup.csproj | 2 +- README.md | 3 +++ _BuildManager/Properties/AssemblyVersionInfo.cs | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Atmosphere/Clouds2D.cs b/Atmosphere/Clouds2D.cs index 78abaf51..e8b03975 100644 --- a/Atmosphere/Clouds2D.cs +++ b/Atmosphere/Clouds2D.cs @@ -254,8 +254,7 @@ public void Reassign(Tools.Layer layer, Transform parent, float worldScale) ShadowProjectorGO.layer = (int)layer; if (layer == Tools.Layer.Local) { - ShadowProjector.ignoreLayers = ~(Tools.Layer.Default.Mask() | - Tools.Layer.TransparentFX.Mask() | + ShadowProjector.ignoreLayers = ~(Tools.Layer.Default.Mask() | // Note: *NOT* TransparentFX, otherwise landing gear lights etc. look terrible. Tools.Layer.Water.Mask() | Tools.Layer.Local.Mask() | Tools.Layer.Kerbals.Mask() | diff --git a/LocalSetup.csproj b/LocalSetup.csproj index 68d219ba..e9990815 100644 --- a/LocalSetup.csproj +++ b/LocalSetup.csproj @@ -1,6 +1,6 @@ - C:\KSP\KSP_1.2.1 + C:\KSP\KSP_1.2.2debug diff --git a/README.md b/README.md index e8b479ea..983c44af 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ EnvironmentalVisualEnhancements Visual enhancements including clouds, lights, etc. +Developers: edit the LocalSetup.csproj to set your KSP directory. + + Some portions of this project are under the GNU General Public License (DDS texture loader) and should be distributed as-such. This project was added to replace the functionality of the diff --git a/_BuildManager/Properties/AssemblyVersionInfo.cs b/_BuildManager/Properties/AssemblyVersionInfo.cs index 00fb4a7c..7ccbcc02 100644 --- a/_BuildManager/Properties/AssemblyVersionInfo.cs +++ b/_BuildManager/Properties/AssemblyVersionInfo.cs @@ -13,4 +13,4 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.1.1")] // KSP version with EVE release number appended. +[assembly: AssemblyVersion("1.2.2.1")] // KSP version with EVE release number appended.