diff --git a/gsdf_gpu_test.go b/gsdf_gpu_test.go index 4ef732f..23cd4f4 100644 --- a/gsdf_gpu_test.go +++ b/gsdf_gpu_test.go @@ -17,7 +17,6 @@ import ( "github.com/soypat/gsdf/glbuild" "github.com/soypat/gsdf/gleval" ) - // Since GPU must be run in main thread we need to do some dark arts for GPU code to be code-covered. func TestMain(m *testing.M) { runtime.LockOSThread() diff --git a/gsdfaux/ui.go b/gsdfaux/ui.go index 9b4554b..250cb77 100644 --- a/gsdfaux/ui.go +++ b/gsdfaux/ui.go @@ -140,7 +140,7 @@ void main() { deltaX := xpos - lastMouseX deltaY := ypos - lastMouseY - yaw += deltaX * yawSensitivity + yaw -= deltaX * yawSensitivity pitch -= deltaY * pitchSensitivity // Invert y-axis // Clamp pitch