// __multiversion__
// This signals the loading code to prepend either #version 100 or #version 300 es as apropriate.

#include "fragmentVersionSimple.h"
#include "uniformPerFrameConstants.h"
varying vec4 color;
varying highp vec3 pos;

#include "dect.h"

void main() {

    highp float posc = length(pos);
    
    highp float chuva = Rain(FOG_CONTROL);
 

    highp vec3 cou = mix(color.rgb * 0.5, FOG_COLOR.rgb, mix(smoothstep(0.3, 1.0, posc * 1.7), smoothstep(0.0, 0.5, pow(posc * 1.7, 0.65)), chuva));

 
    gl_FragColor = vec4(cou,1.0);
}