Browse Source

fix specular mipmaps

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

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

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