Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions xr/src/main/java/com/example/xr/compose/SpatialGltfModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun SpatialGltfModelExample(){
// [START androidxr_compose_SpatialGltfModelState]
val modelState = rememberSpatialGltfModelState(
source = SpatialGltfModelSource.fromPath(
Paths.get("models/bugdroid_animated_wave.glb")
Paths.get("models/model_name.glb")
)
)
// [END androidxr_compose_SpatialGltfModelState]
Expand Down Expand Up @@ -84,8 +84,8 @@ fun SpatialGltfModelExample(){
it.setBaseColorFactor(
Vector4(
x = 0.5f,
y = 0.5f,
z = 1.0f,
y = 0.0f,
z = 0.5f,
w = 1.0f
)
)
Expand All @@ -111,7 +111,6 @@ fun SpatialGltfModelExample(){
// [END androidxr_compose_SpatialGltfModelIntrospection]

// [START androidxr_compose_SpatialGltfModelLoad]
// Render the 3D model into the spatial subspace.
SpatialGltfModel(state = modelState, modifier = SubspaceModifier)
// [END androidxr_compose_SpatialGltfModelLoad]
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private class MaterialOverride(val xrSession: Session) {
x = 0.5f,
y = 0.0f,
z = 0.5f,
w = 0.0f
w = 1.0f
)
)
// [END androidxr_scenecore_material_override_setBaseColor]
Expand Down
Loading