ToyEngine/Demo/Engine/Shaders/model_shadow.frag

12 lines
200 B
GLSL

#version 450 core
uniform sampler2D texture_basecolor;
in vec2 TexCoords;
void main()
{
vec4 baseColor = texture(texture_basecolor, TexCoords);
if(baseColor.a<0.4)
discard;
}