diff --git a/engine/src/core-data/Common/ShaderLib/Shadows.glsllib b/engine/src/core-data/Common/ShaderLib/Shadows.glsllib index 0a0d8ee42..d2f1a942b 100644 --- a/engine/src/core-data/Common/ShaderLib/Shadows.glsllib +++ b/engine/src/core-data/Common/ShaderLib/Shadows.glsllib @@ -24,7 +24,7 @@ #define KERNEL 4.0 #elif FILTER_MODE == 4 #define GETSHADOW Shadow_DoPCFPoisson - #define KERNEL 4 + #define KERNEL 4.0 #elif FILTER_MODE == 5 #define GETSHADOW Shadow_DoPCF #define KERNEL 8.0 diff --git a/engine/src/core-data/Common/ShaderLib/Shadows15.glsllib b/engine/src/core-data/Common/ShaderLib/Shadows15.glsllib index baaf20441..038403802 100644 --- a/engine/src/core-data/Common/ShaderLib/Shadows15.glsllib +++ b/engine/src/core-data/Common/ShaderLib/Shadows15.glsllib @@ -17,26 +17,26 @@ #if FILTER_MODE == 0 #define GETSHADOW Shadow_Nearest - #define KERNEL 1 + #define KERNEL 1.0 #elif FILTER_MODE == 1 #ifdef HARDWARE_SHADOWS #define GETSHADOW Shadow_Nearest #else #define GETSHADOW Shadow_DoBilinear_2x2 #endif - #define KERNEL 1 + #define KERNEL 1.0 #elif FILTER_MODE == 2 #define GETSHADOW Shadow_DoDither_2x2 - #define KERNEL 1 + #define KERNEL 1.0 #elif FILTER_MODE == 3 #define GETSHADOW Shadow_DoPCF - #define KERNEL 4 + #define KERNEL 4.0 #elif FILTER_MODE == 4 #define GETSHADOW Shadow_DoPCFPoisson - #define KERNEL 4 + #define KERNEL 4.0 #elif FILTER_MODE == 5 #define GETSHADOW Shadow_DoPCF - #define KERNEL 8 + #define KERNEL 8.0 #endif