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/billboard.frag

28 lines
490 B
GLSL
Raw Normal View History

2024-01-03 16:05:02 -05:00
layout(location = 0) in vec2 inUV;
layout (location = 0) out vec4 outFragColor;
layout (location = 1) out vec4 outBrightColor;
layout(binding = 1) uniform UniformDebugData {
vec4 color;
vec3 dummy;
int dummy2;
} udd;
layout(binding = 0) uniform UniformMatrixData {
mat4 view;
mat4 proj;
mat4 model;
vec4 color;
} umd;
layout(binding = 2) uniform sampler2D tex;
void main()
{
if(texture(tex, inUV).a < 0.5)
discard;
outFragColor = umd.color;
}