Isomorphic Go
gci17_isomorphic_go
gci17_isomorphic_go
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
initialize() - Setting up the 3D model<br />
loader := JS.Get("THREE").Get("OBJLoader").New()<br />
loader.Call("load", "obj/gogopher.obj", func (mesh<br />
*js.Object) {<br />
0.004)<br />
mesh.Get("position").Call("set", 0, -0.45, 0.3)<br />
mesh.Get("scale").Call("set", 0.004, 0.0054,<br />
mesh.Set("castsShadow", true)<br />
mesh.Set("receiveShadow", true)<br />
scene.Call("add", mesh)<br />
})