Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/dist/shaders/grid.frag
2024-01-03 16:05:02 -05:00

11 lines
No EOL
249 B
GLSL

layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec4 inColor;
layout(location = 0) out vec4 outColor;
//from haikarainen's kit
void main()
{
outColor = inColor;
outColor.a *= max(0.0, 1.0 - (length(inPosition) / 100.0));
}