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

Common.MatDefs.Shadow.BasicPostShadow.frag Maven / Gradle / Ivy

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