sceneview-android
sceneview-android copied to clipboard
Create simple shape
Hello, can i create simple shape from class ShapeFactory?
I tried this one, but com.google.ar.sceneform.rendering.Color is deprecated: val material = MaterialFactory.makeTransparentWithColor(this@MainActivity, lifecycle, com.google.ar.sceneform.rendering.Color(1f, 0f, 0f, 0.5f)) val modelTest = ShapeFactory.makeCube(lifecycle, Vector3(1f, 1f, 1f), Vector3(0f, 0f, 0f,), material.get())
How can i create simple half transparent cube? Thanks in advance!