Fix ellipsoids in simulation
[clouds.git] / billboardfrag.glsl
index 046b7bd3bca6e335cd847e6e6dc4151f4edf03fa..16e074e616aae9ea8101b38a11564982e249c894 100644 (file)
@@ -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