Common.MatDefs.Post.Compose.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"
#import "Common/ShaderLib/MultiSample.glsllib"
uniform COLORTEXTURE m_Texture;
uniform COLORTEXTURE m_CompositeTexture;
varying vec2 texCoord;
void main() {
vec4 texVal = getColor(m_Texture, texCoord);
vec4 compositeVal = getColor(m_CompositeTexture, texCoord);
gl_FragColor = mix(compositeVal,texVal,texVal.a);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy