* Require alpha discard define to be set in order to enable the alpha discard feature (for multi pass lighting shader)
This commit is contained in:
parent
22ab7c11c7
commit
4050b7cbbf
@ -106,9 +106,11 @@ void main(){
|
|||||||
#ifdef ALPHAMAP
|
#ifdef ALPHAMAP
|
||||||
alpha = alpha * texture2D(m_AlphaMap, newTexCoord).r;
|
alpha = alpha * texture2D(m_AlphaMap, newTexCoord).r;
|
||||||
#endif
|
#endif
|
||||||
if(alpha < m_AlphaDiscardThreshold){
|
#ifdef DISCARD_ALPHA
|
||||||
discard;
|
if(alpha < m_AlphaDiscardThreshold){
|
||||||
}
|
discard;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// ***********************
|
// ***********************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user