X-Git-Url: https://git.lukelau.me/?p=clouds.git;a=blobdiff_plain;f=billboardfrag.glsl;fp=billboardfrag.glsl;h=16e074e616aae9ea8101b38a11564982e249c894;hp=046b7bd3bca6e335cd847e6e6dc4151f4edf03fa;hb=92594780db1f9bb51b97e68457c526fa4287a29e;hpb=0258cd283dc666dd89f620179f57343662ab5d1a diff --git a/billboardfrag.glsl b/billboardfrag.glsl index 046b7bd..16e074e 100644 --- a/billboardfrag.glsl +++ b/billboardfrag.glsl @@ -4,11 +4,11 @@ uniform sampler2D tex; 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