return;
}
if (debug) {
- FragColor = mix(vec4(1, 1, 1, 1), vec4(1, 0, 0, 1), debugVal);
+ FragColor = mix(vec4(1, 1, 1, 0), vec4(1, 0, 0, 1), debugVal);
return;
}
// Cf = color from fragment, Ct = color from texture
// GL_MODULATE: C
// C = Cf * Ct
// A = Af * At
- FragColor = color * f;
+ FragColor = color * (f + 0.03); // the +0.03 is a hack to get lighter clouds!
} else {
// "That is, the colors in the frame buffer are multiplied by the
// attenuation ratio of the billboard texture and then the colors in