From 632d297ac27ab825f6b99eaff87639ec6626fd02 Mon Sep 17 00:00:00 2001 From: Tim <15017472+doodlum@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:25:50 +0100 Subject: [PATCH 1/2] fix: fix flickering character lighting --- package/Shaders/Lighting.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Shaders/Lighting.hlsl b/package/Shaders/Lighting.hlsl index 5b99cbfd5e..fa17843cbd 100644 --- a/package/Shaders/Lighting.hlsl +++ b/package/Shaders/Lighting.hlsl @@ -2707,7 +2707,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace : SV_IsFrontFace) # if !defined(LANDSCAPE) if (Permutation::PixelShaderDescriptor & Permutation::LightingFlags::CharacterLight) { float charLightMul = saturate(dot(viewDirection, worldNormal.xyz)) * CharacterLightParams.x + CharacterLightParams.y * saturate(dot(float2(0.164398998, -0.986393988), worldNormal.yz)); - float charLightColor = min(CharacterLightParams.w, max(0, CharacterLightParams.z * TexCharacterLightProjNoiseSampler.Sample(SampCharacterLightProjNoiseSampler, baseShadowUV).x)); + float charLightColor = min(CharacterLightParams.w, max(0, CharacterLightParams.z)); diffuseColor += (charLightMul * charLightColor).xxx; } # endif From d8a80747906650d8ab07d02933eb4544a6d2d6ff Mon Sep 17 00:00:00 2001 From: Tim <15017472+doodlum@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:30:13 +0100 Subject: [PATCH 2/2] chore: bump versions --- CMakeLists.txt | 2 +- src/ShaderCache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee4fc44109..109fa64092 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21) project( CommunityShaders - VERSION 1.3.0 + VERSION 1.3.1 LANGUAGES CXX ) diff --git a/src/ShaderCache.h b/src/ShaderCache.h index 3f7fc9cbc7..6b83355c24 100644 --- a/src/ShaderCache.h +++ b/src/ShaderCache.h @@ -3,7 +3,7 @@ #include #include -static constexpr REL::Version SHADER_CACHE_VERSION = { 0, 0, 0, 32 }; +static constexpr REL::Version SHADER_CACHE_VERSION = { 0, 0, 0, 33 }; using namespace std::chrono;