add readme
This commit is contained in:
parent
f590ded0c0
commit
ab415f2ee6
3
runtime-building-models/README.md
Normal file
3
runtime-building-models/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Runtime building models
|
||||||
|
|
||||||
|
An ARCore and Sceneform project that build basic models, like sphere and cube, at runtime and place these into the scene.
|
@ -88,7 +88,7 @@ fun changeColorOfMaterial(
|
|||||||
color: Color,
|
color: Color,
|
||||||
renderable: Renderable
|
renderable: Renderable
|
||||||
) {
|
) {
|
||||||
val newColor = buildMaterial(context, color) {
|
buildMaterial(context, color) {
|
||||||
renderable.material = it
|
renderable.material = it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user