commit a7ecaa70f2215b1108d38c237f4ada5fea40799a parent 897ac30c0e6ffed35b3536a1c2fec624797ec1b1 Author: Matsuda Kenji <info@mtkn.jp> Date: Sat, 23 Nov 2024 08:15:35 +0900 delete alpha Diffstat:
M | cmd/sample/main.go | | | 14 | -------------- |
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git a/cmd/sample/main.go b/cmd/sample/main.go @@ -26,18 +26,6 @@ func processInput(app *App) { app.termination = true return } - if tofu.IsKeyPressed(tofu.KeyUp) { - alpha += 0.01 - if alpha > 1.0 { - alpha = 1.0 - } - } - if tofu.IsKeyPressed(tofu.KeyDown) { - alpha -= 0.01 - if alpha < 0 { - alpha = 0 - } - } if tofu.IsKeyPressed(tofu.KeyW) { camera.Move2(0, -speed) } @@ -263,8 +251,6 @@ var lightUniforms = struct { LightCol: spotLight.Specular, } -var alpha float32 = 0.2 - type App struct { program *tofu.Program lightProgram *tofu.Program