 
 #ifdef ENVMAP_TYPE_CUBE_UV
 
-#define CUBE_UV_TEXTURE_SIZE 1024
+const float cubeUV_textureSize = 1024.0;
 
 int getFaceFromDirection(vec3 direction) {
     vec3 absDirection = abs(direction);

    return base + s * ( scale - 2.0 * texelOffset );
}

const float cubeUV_maxLods3 = log2(float(CUBE_UV_TEXTURE_SIZE)*0.25) - 3.0;

vec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {
    float roughnessVal = roughness* cubeUV_maxLods3;

    }
    return face;
}
const float cubeUV_maxLods1 = log2(cubeUV_textureSize*0.25) - 1.0;
const float cubeUV_rangeClamp = exp2((6.0 - 1.0) * 2.0);

vec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {
