From 6c2dcc472d903cd6f80c9b939de74468cc0a26b2 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Wed, 19 Sep 2012 16:25:32 +0000 Subject: [PATCH] Lighting and Shadows : - removed the const keyword for the poisson disk array declaration in the shader (attempt to fix the shader on mac) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9754 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM.frag | 2 +- .../src/core-data/Common/MatDefs/Shadow/PostShadowPSSM15.frag | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM.frag b/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM.frag index d2fca8f4d..7cfb0a815 100644 --- a/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM.frag +++ b/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM.frag @@ -119,7 +119,7 @@ float Shadow_DoPCF(in SHADOWMAP tex, in vec4 projCoord){ //12 tap poisson disk -const vec2 poissonDisk[12] =vec2[12]( vec2(-0.1711046, -0.425016), +vec2 poissonDisk[12] =vec2[12]( vec2(-0.1711046, -0.425016), vec2(-0.7829809, 0.2162201), vec2(-0.2380269, -0.8835521), vec2(0.4198045, 0.1687819), diff --git a/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM15.frag b/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM15.frag index cd41b9336..8368ae0cf 100644 --- a/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM15.frag +++ b/engine/src/core-data/Common/MatDefs/Shadow/PostShadowPSSM15.frag @@ -125,7 +125,7 @@ float Shadow_DoPCF(in SHADOWMAP tex, in vec4 projCoord){ //12 tap poisson disk -const vec2 poissonDisk[12] =vec2[12]( vec2(-0.1711046, -0.425016), +vec2 poissonDisk[12] =vec2[12]( vec2(-0.1711046, -0.425016), vec2(-0.7829809, 0.2162201), vec2(-0.2380269, -0.8835521), vec2(0.4198045, 0.1687819),