[]3D两个平面拼接的贴图直接会有明显的接缝
3D两个平面拼接的贴图直接会有明显的接缝。mipmap也关闭了。感觉应该是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码
var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D;
plane.transform.position = new Laya.Vector3(0,0,0);
var material: Laya.StandardMaterial = new Laya.StandardMaterial();
material.diffuseTexture = Laya.Texture2D.load("res/aaa.png");
material.diffuseTexture.mipmap = false;
plane.meshRender.material = material;
var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D;
plane.transform.position = new Laya.Vector3(0,0,0);
var material: Laya.StandardMaterial = new Laya.StandardMaterial();
material.diffuseTexture = Laya.Texture2D.load("res/aaa.png");
material.diffuseTexture.mipmap = false;
plane.meshRender.material = material;
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
w1114367261
赞同来自: