Skip to content

Commit 6b05a55

Browse files
authored
minor update to comments and material values (#898)
1 parent 4f04152 commit 6b05a55

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

xr/src/main/java/com/example/xr/compose/SpatialGltfModel.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

xr/src/main/java/com/example/xr/scenecore/MaterialOverride.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)