summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-31 10:41:31 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-31 13:27:05 +0200
commitc53d6d94e4ee8ca01d857ed5f86899be048ef7f4 (patch)
tree0861e150a931ae3dc6bc02a94faa4f9ed0c890d9 /app.go
parent47ef2d48af8d9efc23b65f13546528e061bad13d (diff)
downloadstlscope-0.3.0.tar
stlscope-0.3.0.tar.zst
stlscope-0.3.0.zip
Implement ambient and diffuse Lighting0.3.0
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
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)
}