27 lines
490 B
GLSL
27 lines
490 B
GLSL
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;
|
|
}
|