From c53d6d94e4ee8ca01d857ed5f86899be048ef7f4 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 31 May 2021 10:41:31 +0200 Subject: Implement ambient and diffuse Lighting --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.go') diff --git a/app.go b/app.go index 22548a3..30dfd44 100644 --- a/app.go +++ b/app.go @@ -58,7 +58,7 @@ func (application *App) handle() { // generate and set transformation trafo := application.homeTrafo - trafo = mgl32.HomogRotate3D(float32(glfw.GetTime()) * 3, mgl32.Vec3{0, 1, 0}).Mul4(trafo) // apply time-based rotation + trafo = mgl32.HomogRotate3D(float32(glfw.GetTime()) * 0.4 * 6.282, mgl32.Vec3{0.1, 1, 0}).Mul4(trafo) // apply time-based rotation application.graphics.setTrafo(trafo) } -- cgit v1.2.3-70-g09d2