mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
comp: Add disabled shader debugging code
This commit is contained in:
parent
2db8138e8e
commit
e86628884b
|
@ -34,5 +34,17 @@ layout (location = 0) out vec4 outColor;
|
|||
void main()
|
||||
{
|
||||
vec3 color = texture(texSampler, inUV).xyz;
|
||||
outColor = vec4(color,1.0);
|
||||
|
||||
#if 0
|
||||
if (inUV.x < 0.0 || inUV.x > 1.0 || inUV.y < 0.0 || inUV.y > 1.0) {
|
||||
color = vec3(1.0, 0.0, 1.0);
|
||||
} else {
|
||||
float t = floor(inUV.x * 16) + floor(inUV.y * 16);
|
||||
bool isEven = mod(t, 2.0) == 0.0;
|
||||
// color = color * float(isEven);
|
||||
color = vec3(isEven, isEven, isEven);
|
||||
}
|
||||
#endif
|
||||
|
||||
outColor = vec4(color, 1.0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue