So I am very new to Famo.us
this could be a stupid question (I hope not).
var Mesh = require('famous/webgl-renderables/Mesh');
.....
var mesh = new Mesh(meshNode).setGeometry('Circle');
I can pass through multiple types of shapes through the setGeometry
is there a way I could pass through an image. For example, a logo?
Thanks!
You cannot pass an image as the geometry of the mesh, but you can pass an image to apply as a
Material
to theMesh
. Usemesh.setBaseColor
and pass inMaterial.image
.Run the example snippet below (Spinning Sphere)