(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
3.0
Zer..om 12 years ago
parent dd46be3688
commit ecb8b0508d
  1. 2
      engine/src/core-data/Common/ShaderLib/Shadows.glsllib
  2. 12
      engine/src/core-data/Common/ShaderLib/Shadows15.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

@ -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

Loading…
Cancel
Save