diff --git a/features/Skylighting/Shaders/Features/Skylighting.ini b/features/Skylighting/Shaders/Features/Skylighting.ini index 01aaedc093..519c4a9ce8 100644 --- a/features/Skylighting/Shaders/Features/Skylighting.ini +++ b/features/Skylighting/Shaders/Features/Skylighting.ini @@ -1,2 +1,2 @@ [Info] -Version = 1-0-2 \ No newline at end of file +Version = 1-0-3 \ No newline at end of file diff --git a/features/Skylighting/Shaders/Skylighting/Skylighting.hlsli b/features/Skylighting/Shaders/Skylighting/Skylighting.hlsli index 47732ddb88..40194fb564 100644 --- a/features/Skylighting/Shaders/Skylighting/Skylighting.hlsli +++ b/features/Skylighting/Shaders/Skylighting/Skylighting.hlsli @@ -43,6 +43,10 @@ namespace Skylighting if (SharedData::InInterior) return scaledUnitSH; + // Fix objects which are too dark + normalWS.z = normalWS.z * 0.5 + 0.5; + normalWS = normalize(normalWS); + positionMS.xyz += normalWS * CELL_SIZE * 0.5; // Receiver normal bias if (SharedData::FrameCount) { // Check TAA