File tree Expand file tree Collapse file tree
xr/src/main/java/com/example/xr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ fun SpatialGltfModelExample(){
4646 // [START androidxr_compose_SpatialGltfModelState]
4747 val modelState = rememberSpatialGltfModelState(
4848 source = SpatialGltfModelSource .fromPath(
49- Paths .get(" models/bugdroid_animated_wave .glb" )
49+ Paths .get(" models/model_name .glb" )
5050 )
5151 )
5252 // [END androidxr_compose_SpatialGltfModelState]
@@ -84,8 +84,8 @@ fun SpatialGltfModelExample(){
8484 it.setBaseColorFactor(
8585 Vector4 (
8686 x = 0.5f ,
87- y = 0.5f ,
88- z = 1.0f ,
87+ y = 0.0f ,
88+ z = 0.5f ,
8989 w = 1.0f
9090 )
9191 )
@@ -111,7 +111,6 @@ fun SpatialGltfModelExample(){
111111 // [END androidxr_compose_SpatialGltfModelIntrospection]
112112
113113 // [START androidxr_compose_SpatialGltfModelLoad]
114- // Render the 3D model into the spatial subspace.
115114 SpatialGltfModel (state = modelState, modifier = SubspaceModifier )
116115 // [END androidxr_compose_SpatialGltfModelLoad]
117116}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ private class MaterialOverride(val xrSession: Session) {
4141 x = 0.5f ,
4242 y = 0.0f ,
4343 z = 0.5f ,
44- w = 0 .0f
44+ w = 1 .0f
4545 )
4646 )
4747 // [END androidxr_scenecore_material_override_setBaseColor]
You can’t perform that action at this time.
0 commit comments