diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-05-31 10:41:31 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-05-31 13:27:05 +0200 |
commit | c53d6d94e4ee8ca01d857ed5f86899be048ef7f4 (patch) | |
tree | 0861e150a931ae3dc6bc02a94faa4f9ed0c890d9 /app.go | |
parent | 47ef2d48af8d9efc23b65f13546528e061bad13d (diff) | |
download | stlscope-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |