in vec2 texCoord;
out vec4 FragColor;
uniform bool modulate;
-uniform bool debugContDist;
-uniform float density;
+uniform bool debug;
+uniform float debugVal;
void main() {
- if (debugContDist) {
- FragColor = mix(vec4(1, 1, 1, 1), vec4(1, 0, 0, 1), density);
+ if (debug) {
+ FragColor = mix(vec4(1, 1, 1, 1), vec4(1, 0, 0, 1), debugVal);
return;
}
// Cf = color from fragment, Ct = color from texture