Renderer/assets/Shaders/core/anime/compositeAnimeOutline.fs
austin de1ddecfba
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
move shaders around
2024-09-02 15:49:23 -04:00

30 lines
500 B
GLSL

#version 420 core
// shader outputs
layout (location = 0) out vec4 frag;
// color accumulation buffer
layout (binding = 0) uniform sampler2D texture;
void main(){
// fragment coordination
ivec2 coords = ivec2(gl_FragCoord.xy);
// fragment color
vec4 color = texelFetch(texture, coords, 0);
float val = color.r;
// if(color.r < 0.5){z
// discard;
// }
vec4 outColor = vec4(0);
if(val == 1){
outColor = vec4(0,0,0,0.5);
// outColor.a = 1;
}
frag = outColor;
}