//===============================
// Volumetric Light
//===============================

//#define VL
#ifndef VOL_QUALITY_LOW
#ifndef VOL_QUALITY_MEDIUM
#ifndef VOL_QUALITY_HIGH
#ifndef VOL_QUALITY_ULTRA

#define VOL_QUALITY_MEDIUM

#endif
#endif
#endif
#endif

#ifdef VOL_QUALITY_LOW
    #define VP_VOL_STEPS 6
    #define VP_VOL_NOISE_SCALE 0.0015
    #define VP_VOL_EXTINCTION 0.060
#endif

#ifdef VOL_QUALITY_MEDIUM
    #define VP_VOL_STEPS 9
    #define VP_VOL_NOISE_SCALE 0.0010
    #define VP_VOL_EXTINCTION 0.050
#endif

#ifdef VOL_QUALITY_HIGH
    #define VP_VOL_STEPS 16
    #define VP_VOL_NOISE_SCALE 0.0008
    #define VP_VOL_EXTINCTION 0.045
#endif

#ifdef VOL_QUALITY_ULTRA
    #define VP_VOL_STEPS 24
    #define VP_VOL_NOISE_SCALE 0.0005
    #define VP_VOL_EXTINCTION 0.040
#endif

#define VP_VOL_HEIGHT_FALLOFF 0.02
#define VP_VOL_NOISE_MIN      0.8
#define VP_VOL_NOISE_MAX      1.2
#define VP_VOL_PHASE_POWER    1.0

#define VP_SUN_VOL_INTENSITY  1.0
#define VP_MOON_VOL_INTENSITY 0.25