Android filament 加载 .glb模型设置透明背景

1.重写UIHelper

isOpaque = false;

2.

 fun makeItTransparent() {
        val options = renderer.clearOptions
        options.clear = true
        renderer.clearOptions = options
    }

3.

 modelViewer.view.blendMode = com.google.android.filament.View.BlendMode.TRANSLUCENT
 modelViewer.scene.skybox = null

  

 

posted @ 2022-02-09 18:34  crane13  阅读(988)  评论(3编辑  收藏  举报