Nicolas Cannasse 4 years ago
parent
commit
eb053973a1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hrt/prefab/l3d/Environment.hx

+ 1 - 0
hrt/prefab/l3d/Environment.hx

@@ -62,6 +62,7 @@ class Environment extends Object3D {
 			path.ext = "envs.dds";
 			path.ext = "envs.dds";
 			env.specular = hxd.res.Loader.currentInstance.load(path.toString()).toImage().toTexture();
 			env.specular = hxd.res.Loader.currentInstance.load(path.toString()).toImage().toTexture();
 			env.specular.mipMap = Linear;
 			env.specular.mipMap = Linear;
+			env.specLevels = env.getMipLevels() - ignoredSpecLevels;
 			return true;
 			return true;
 		} catch( e : hxd.res.NotFound ) {
 		} catch( e : hxd.res.NotFound ) {
 			return false;
 			return false;