Browse Source

fix specular mipmaps

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
714232d857
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;