diff --git a/runtime-building-models/README.md b/runtime-building-models/README.md new file mode 100644 index 0000000..f4048c1 --- /dev/null +++ b/runtime-building-models/README.md @@ -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. diff --git a/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt b/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt index db1c1ca..4e60fe1 100644 --- a/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt +++ b/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt @@ -88,7 +88,7 @@ fun changeColorOfMaterial( color: Color, renderable: Renderable ) { - val newColor = buildMaterial(context, color) { + buildMaterial(context, color) { renderable.material = it } }