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

18 lines
406 B
GLSL
Raw Normal View History

2024-01-03 16:05:02 -05:00
layout(location = 0) out vec4 outFragColor;
layout(location = 0) in vec3 Position;
layout(binding = 0) uniform UniformDebugData {
mat4 projection, view, model;
vec4 pickColor;
} udd;
layout(binding = 1) uniform samplerCube cubeSampler;
void main() {
if(udd.pickColor.a == 0) {
outFragColor = texture(cubeSampler, Position);
} else {
outFragColor = udd.pickColor;
}
}