ToyEngine/Exp2/Engine/Shaders/model_shadow.frag

12 lines
200 B
GLSL
Raw Normal View History

2023-04-16 17:12:29 +08:00
#version 450 core
uniform sampler2D texture_basecolor;
in vec2 TexCoords;
void main()
{
vec4 baseColor = texture(texture_basecolor, TexCoords);
if(baseColor.a<0.4)
discard;
}