From ecb8b0508db6f2c288c77ee295c5ac8dc7be5774 Mon Sep 17 00:00:00 2001 From: "Zer..om" Date: Wed, 5 Dec 2012 13:05:59 +0000 Subject: [PATCH] (Hopefully) Fixed a shader problem on macs where it was trying to multiply an int with a float... git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10021 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/core-data/Common/ShaderLib/Shadows.glsllib | 2 +- .../src/core-data/Common/ShaderLib/Shadows15.glsllib | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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