diff --git a/jme3-core/src/main/java/com/jme3/shadow/EdgeFilteringMode.java b/jme3-core/src/main/java/com/jme3/shadow/EdgeFilteringMode.java index 6c9f3d922..a40603250 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/EdgeFilteringMode.java +++ b/jme3-core/src/main/java/com/jme3/shadow/EdgeFilteringMode.java @@ -40,7 +40,7 @@ public enum EdgeFilteringMode { * Shadows are not filtered. Nearest sample is used, causing in blocky * shadows. */ - Nearest(0), + Nearest(10), /** * Bilinear filtering is used. Has the potential of being hardware * accelerated on some GPUs diff --git a/jme3-core/src/main/resources/Common/ShaderLib/Shadows.glsllib b/jme3-core/src/main/resources/Common/ShaderLib/Shadows.glsllib index 9934db637..baf003f88 100644 --- a/jme3-core/src/main/resources/Common/ShaderLib/Shadows.glsllib +++ b/jme3-core/src/main/resources/Common/ShaderLib/Shadows.glsllib @@ -15,7 +15,7 @@ #define SHADOWGATHER(tex,coord) step(coord.z, textureGather(tex, coord.xy)) #endif - #if FILTER_MODE == 0 + #if FILTER_MODE == 10 #define GETSHADOW Shadow_Nearest #define KERNEL 1.0 #elif FILTER_MODE == 1 @@ -36,7 +36,7 @@ #define SHADOWCOMPARE(tex,coord) step(coord.z, texture2DProj(tex, coord).r) #endif - #if FILTER_MODE == 0 + #if FILTER_MODE == 10 #define GETSHADOW Shadow_DoShadowCompare #define KERNEL 1.0 #elif FILTER_MODE == 1 @@ -51,7 +51,7 @@ #endif -#if FILTER_MODE == 2 +#if (FILTER_MODE == 2) #define GETSHADOW Shadow_DoDither_2x2 #define KERNEL 1.0 #elif FILTER_MODE == 3