#version 330 out vec4 fragColor; in float mx; void main(){ fragColor = mix(0.7 * vec4(0.3, 0.1, 0.01, 1.0), vec4(0.0, 0.0, 0.4, 1.0), mx); }