All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.SSAO.normal.frag Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
#import "Common/ShaderLib/GLSLCompat.glsllib"
varying vec3 normal;
varying vec2 texCoord;


#ifdef DIFFUSEMAP_ALPHA
    uniform sampler2D m_DiffuseMap;
#endif

#ifdef COLORMAP_ALPHA
    uniform sampler2D m_ColorMap;
#endif

#ifdef BASECOLORMAP_ALPHA
    uniform sampler2D m_BaseColorMap;
#endif

#if defined DIFFUSEMAP_ALPHA || defined COLORMAP_ALPHA || defined BASECOLORMAP_ALPHA
    uniform float m_AlphaDiscardThreshold;
#endif

void main(void)
{

    #ifdef DIFFUSEMAP_ALPHA
        if(texture2D(m_DiffuseMap,texCoord).a




© 2015 - 2025 Weber Informatics LLC | Privacy Policy