From 9d7d5a388c26e29b79b94230a56e8f442bdbe853 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 30 Apr 2012 11:39:21 +0000 Subject: [PATCH] Shadows/SSAO and transparency : Removed the AlphaDiscardThreshold from the frag shaders git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9334 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-data/Common/MatDefs/Light/Lighting.frag | 7 +------ engine/src/core-effects/Common/MatDefs/SSAO/normal.frag | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/engine/src/core-data/Common/MatDefs/Light/Lighting.frag b/engine/src/core-data/Common/MatDefs/Light/Lighting.frag index eac42df22..8664facfb 100644 --- a/engine/src/core-data/Common/MatDefs/Light/Lighting.frag +++ b/engine/src/core-data/Common/MatDefs/Light/Lighting.frag @@ -55,8 +55,6 @@ varying vec3 SpecularSum; uniform sampler2D m_ColorRamp; #endif -uniform float m_AlphaDiscardThreshold; - #ifndef VERTEX_LIGHTING uniform float m_Shininess; @@ -171,10 +169,7 @@ void main(){ float alpha = DiffuseSum.a * diffuseColor.a; #ifdef ALPHAMAP alpha = alpha * texture2D(m_AlphaMap, newTexCoord).r; - #endif - if(alpha < m_AlphaDiscardThreshold){ - discard; - } + #endif #ifndef VERTEX_LIGHTING float spotFallOff = 1.0; diff --git a/engine/src/core-effects/Common/MatDefs/SSAO/normal.frag b/engine/src/core-effects/Common/MatDefs/SSAO/normal.frag index eda6e1987..7cee6a789 100644 --- a/engine/src/core-effects/Common/MatDefs/SSAO/normal.frag +++ b/engine/src/core-effects/Common/MatDefs/SSAO/normal.frag @@ -4,7 +4,6 @@ varying vec2 texCoord; #ifdef DIFFUSEMAP_ALPHA uniform sampler2D m_DiffuseMap; - uniform float m_AlphaDiscardThreshold; #endif void main(void)