diff --git a/features/Wetness Effects/Shaders/WetnessEffects/WetnessEffects.hlsli b/features/Wetness Effects/Shaders/WetnessEffects/WetnessEffects.hlsli index f8dd9df30..dcae08fba 100644 --- a/features/Wetness Effects/Shaders/WetnessEffects/WetnessEffects.hlsli +++ b/features/Wetness Effects/Shaders/WetnessEffects/WetnessEffects.hlsli @@ -43,6 +43,7 @@ struct PerPassWetnessEffects float ChaoticRippleStrength; float ChaoticRippleScaleRcp; float ChaoticRippleSpeed; + float pad[3]; }; StructuredBuffer perPassWetnessEffects : register(t22); diff --git a/src/Features/WetnessEffects.h b/src/Features/WetnessEffects.h index 2633ebf35..40dfe573f 100644 --- a/src/Features/WetnessEffects.h +++ b/src/Features/WetnessEffects.h @@ -68,7 +68,7 @@ struct WetnessEffects : Feature REX::W32::XMFLOAT4X4 PrecipProj; Settings settings; - float pad[4 - (sizeof(Settings) / 4 + 16) % 4]; + float pad[3]; }; Settings settings;