* Require alpha discard define to be set in order to enable the alpha discard feature (for multi pass lighting shader)

experimental
shadowislord 10 years ago
parent 22ab7c11c7
commit 4050b7cbbf
  1. 2
      jme3-core/src/main/resources/Common/MatDefs/Light/Lighting.frag

@ -106,9 +106,11 @@ void main(){
#ifdef ALPHAMAP
alpha = alpha * texture2D(m_AlphaMap, newTexCoord).r;
#endif
#ifdef DISCARD_ALPHA
if(alpha < m_AlphaDiscardThreshold){
discard;
}
#endif
// ***********************

Loading…
Cancel
Save