From 4696ff04c9faceeb9bc84e8431100370f938cf42 Mon Sep 17 00:00:00 2001 From: Francivan Bezerra Date: Tue, 27 Oct 2026 20:20:20 -0300 Subject: [PATCH] Float type mismatch Fix float type mismatch in dot() comparison. --- .../resources/Common/MatDefs/Shadow/PostShadowFilter15.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadowFilter15.frag b/jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadowFilter15.frag index 637fc60117..3c8d8abe9b 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadowFilter15.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadowFilter15.frag @@ -88,8 +88,8 @@ vec4 main_multiSample(in int numSample){ #endif #if (!defined(POINTLIGHT) && !defined(PSSM)) - if( dot(m_LightDir,lightDir)<0){ - return color; + if(dot(m_LightDir, lightDir) < 0.0) { + return color; } #endif