diff --git a/features/Cloud Shadows/Shaders/CloudShadows/output.cs.hlsl b/features/Cloud Shadows/Shaders/CloudShadows/output.cs.hlsl index ac3e10fe9..cd13e5e49 100644 --- a/features/Cloud Shadows/Shaders/CloudShadows/output.cs.hlsl +++ b/features/Cloud Shadows/Shaders/CloudShadows/output.cs.hlsl @@ -4,14 +4,10 @@ struct PerPassCloudShadow { uint EnableCloudShadows; - float CloudHeight; float PlanetRadius; - float EffectMix; - float TransparencyPower; - float RcpHPlusR; }; diff --git a/features/Terrain Occlusion/Shaders/TerrainOcclusion/ShadowUpdate.cs.hlsl b/features/Terrain Occlusion/Shaders/TerrainOcclusion/ShadowUpdate.cs.hlsl index f8e0090c2..a202c2777 100644 --- a/features/Terrain Occlusion/Shaders/TerrainOcclusion/ShadowUpdate.cs.hlsl +++ b/features/Terrain Occlusion/Shaders/TerrainOcclusion/ShadowUpdate.cs.hlsl @@ -7,6 +7,7 @@ cbuffer ShadowUpdateCB : register(b1) float2 LightDeltaZ : packoffset(c0.z); // per lightUVDir, normalised, [upper, lower] penumbra, should be negative uint StartPxCoord : packoffset(c1.x); float2 PxSize : packoffset(c1.y); + float pad : packoffset(c1.w); } float GetInterpolatedHeight(float2 pxCoord, bool isVertical) diff --git a/src/Features/CloudShadows.h b/src/Features/CloudShadows.h index 0645df188..6099207dd 100644 --- a/src/Features/CloudShadows.h +++ b/src/Features/CloudShadows.h @@ -19,22 +19,16 @@ struct CloudShadows : Feature struct Settings { uint EnableCloudShadows = true; - float CloudHeight = 2e3f / 1.428e-2f; float PlanetRadius = 6371e3f / 1.428e-2f; - float EffectMix = 1.f; - float TransparencyPower = 0.1f; } settings; struct PerPass { Settings Settings; - float RcpHPlusR; - - float padding; }; std::unique_ptr perPass = nullptr;