#ifndef MULTISAMPLING #define MULTISAMPLING 1 #endif #ifndef DEFERRED_SAMPLING #define DEFERRED_SAMPLING 1 #endif #ifndef CAN_DISCARD #define CAN_DISCARD 1 #endif #ifndef USE_LIGHTMAP #define USE_LIGHTMAP 1 #endif #if VXGI #define VXGI_NDC 1 #define VXGI_SHADOWS 0 #endif #ifndef MAX_TEXTURES #define MAX_TEXTURES TEXTURES #endif #ifndef FOG #define FOG 1 #endif #ifndef FOG_RAY_MARCH #define FOG_RAY_MARCH 1 #endif #ifndef WHITENOISE #define WHITENOISE 1 #endif #ifndef GAMMA_CORRECT #define GAMMA_CORRECT 1 #endif #ifndef TONE_MAP #define TONE_MAP 1 #endif #ifndef LAMBERT #define LAMBERT 0 #endif #ifndef PBR #define PBR 1 #endif const float PI = 3.14159265359; const float EPSILON = 0.00001; const float SQRT2 = 1.41421356237; const float LIGHT_POWER_CUTOFF = 0.0005;