Common.MatDefs.SSAO.normal.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-effects Show documentation
Show all versions of jme3-effects Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
#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