如何解决Android Studio 3D形状与Google Sceneform的纹理重复
texture (image from drawable) don't mapping and repeat when use sampler when init a cube by
ShapeFactory image display without scale and repeat on the side of cube and i try too init a cube
with a add texture after for its material do not run also .... check my code
because it do not show the the best result for the this job
i want to render my image like this picture
Texture.builder()
.setSource(this,R.drawable.five)
.setSampler(sampler)
.build().thenAccept(texture -> {
MaterialFactory.makeOpaqueWithTexture(this,texture)
.thenAccept(
material -> {
addNodeToScene2(ShapeFactory.makeCube(new Vector3(0.01f,4.3f,5.0f),new Vector3(3.4f,0.6f,0.0f),material));
});
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。