From cdf4de4a6854c60b48080b9c7003ffb21c793f05 Mon Sep 17 00:00:00 2001 From: TheRiverwoodModder <125157333+TheRiverwoodModder@users.noreply.github.com> Date: Fri, 5 Apr 2024 22:42:19 -0700 Subject: [PATCH] fix: fix for wetness bugs on older Nvidia cards --- .../Wetness Effects/Shaders/WetnessEffects/WetnessEffects.hlsli | 1 + src/Features/WetnessEffects.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;