#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct Globals
{
    float4x4 uVP;
    packed_float3 uCam;
    float uTime;
    float uRain;
};

struct main0_out
{
    float4 FragColor [[color(0)]];
};

struct main0_in
{
    float vV [[user(locn0)]];
};

fragment main0_out main0(main0_in in [[stage_in]], constant Globals& _14 [[buffer(0)]])
{
    main0_out out = {};
    float a = _14.uRain * mix(0.2800000011920928955078125, 0.75, in.vV);
    float3 col = mix(float3(0.62000000476837158203125, 0.699999988079071044921875, 0.87999999523162841796875), float3(0.7799999713897705078125, 0.839999973773956298828125, 0.959999978542327880859375), float3(in.vV));
    out.FragColor = float4(col, a);
    return out;
}

