|
@@ -154,7 +154,13 @@ function WebGLMaterials( properties ) {
|
|
uniforms.reflectivity.value = material.reflectivity;
|
|
uniforms.reflectivity.value = material.reflectivity;
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
|
|
|
|
- uniforms.maxMipLevel.value = properties.get( envMap ).__maxMipLevel;
|
|
|
|
|
|
+ var maxMipLevel = properties.get( envMap ).__maxMipLevel;
|
|
|
|
+
|
|
|
|
+ if ( maxMipLevel !== undefined ) {
|
|
|
|
+
|
|
|
|
+ uniforms.maxMipLevel.value = maxMipLevel;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|