From 1b2b9a6e88e2cb315246e68623c3e31fdbfe32eb Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Thu, 21 Nov 2013 21:50:05 +0000 Subject: [PATCH] Explained PCFPOISSON filtering in EdgeFilterinMode enum javadoc git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10903 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/shadow/EdgeFilteringMode.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/shadow/EdgeFilteringMode.java b/engine/src/core/com/jme3/shadow/EdgeFilteringMode.java index 161e7684c..6c9f3d922 100644 --- a/engine/src/core/com/jme3/shadow/EdgeFilteringMode.java +++ b/engine/src/core/com/jme3/shadow/EdgeFilteringMode.java @@ -57,8 +57,13 @@ public enum EdgeFilteringMode { */ PCF4(3), /** - * 8x8 percentage-closer filtering is used. Shadows will be smoother at the - * cost of performance + * 12 samples percentage-closer filtering with a POISON disc distribution + * is used. + * http://devmag.org.za/2009/05/03/poisson-disk-sampling/ + * The principle is to eliminate the regular blurring pattern that can be + * seen with pcf4x4 by randomizing the samble position with a poisson disc. + * Shadows will look smoother than 4x4 PCF but with slightly better or + * similar performance. */ PCFPOISSON(4), /**