@@ -1,10 +1,5 @@
#ifdef NUM_SAMPLES
- #ifdef WEBGL2
- #define ZERO 0u
- #else
- #define ZERO 0
- #endif
- #if NUM_SAMPLES > ZERO
+ #if NUM_SAMPLES > 0
const float NUM_SAMPLES_FLOAT = float(NUM_SAMPLES);
const float NUM_SAMPLES_FLOAT_INVERSED = 1. / NUM_SAMPLES_FLOAT;
@@ -267,7 +267,7 @@
irradianceVector.y *= -1.0;
#endif
- #if defined(WEBGL2) && defined(REALTIME_FILTERING)
+ #if defined(REALTIME_FILTERING)
environmentIrradiance = irradiance(reflectionSampler, irradianceVector, vReflectionFilteringInfo);
#else
environmentIrradiance = computeEnvironmentIrradiance(irradianceVector);
@@ -317,7 +317,7 @@ struct subSurfaceOutParams
#if defined(USESPHERICALFROMREFLECTIONMAP)
vec3 refractionIrradiance = irradiance(reflectionSampler, -irradianceVector, vReflectionFilteringInfo);
vec3 refractionIrradiance = computeEnvironmentIrradiance(-irradianceVector);