0

I want to make a transparent material for the door model by using lib SceneView for AR. It turned out that my material have blendingMode: OPAQUE, which not supported transparent for model. So I need to change blendingMode: TRANSPARENT. How I can do this?

modelDoorNode?.materialInstances?.get(0)?.setBaseColor(Color(1f, 1f, 1f, 0.1f)) // My door is not transparent
var blend = modelDoorNode?.materialInstances?.get(0)?.material?.blendingMode
Log.i("CHECKING", "blendingMode: ${blend}") // Output: OPAQUE

// This is not working, becouse blendingMode is val
modelDoorNode?.materialInstances?.get(0)?.material?.blendingMode = com.google.android.filament.Material.BlendingMode.TRANSPARENT

0 Answers0