INNER CODE UNIT · Go

init

g3n/g3nd · demos/animation/basic.go:18

func init() {
	app.DemoMap["animation.basic"] = &AnimationBasic{}
}

type AnimationBasic struct {
	anim *animation.Animation
}

// Start is called once at the start of the demo.
func (t *AnimationBasic) Start(a *app.App) {

	ah := helper.NewAxes(1.0)
	a.Scene().Add(ah)

	// Adds white directional front light
	dir1 := light.NewDirectional(&math32.Color{1, 1, 1}, 1.0)
	dir1.SetPosition(0, 5, 10)
	a.Scene().Add(dir1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…