Common.MatDefs.Shadow.BasicPostShadow.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
The newest version!
#import "Common/ShaderLib/GLSLCompat.glsllib"
#import "Common/ShaderLib/BasicShadow.glsllib"
uniform SHADOWMAP m_ShadowMap;
varying vec4 projCoord;
void main() {
vec4 coord = projCoord;
coord.xyz /= coord.w;
float shad = Shadow_GetShadow(m_ShadowMap, coord) * 0.7 + 0.3;
gl_FragColor = vec4(shad,shad,shad,1.0);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy