我正在关注本教程的灯丝:https ://medium.com/@philiprideout/getting-started-with-filament-on-android-d10b16f0ec67
如何将背景颜色设置为白色?
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
surfaceView = SurfaceView(this).apply {
setContentView(this)
}
choreographer = Choreographer.getInstance()
modelViewer = ModelViewer(surfaceView)
surfaceView.setOnTouchListener(modelViewer)
loadGlb("DamagedHelmet")
modelViewer.scene.skybox = Skybox.Builder().build(modelViewer.engine)
loadEnvironment("venetian_crossroads_2k")
}
我试过设置背景颜色,SurfaceView
但没有奏效。
目前,它看起来像这样(似乎默认为黑色):