Showing the changes to scripts (1 of 7 files). Show all
Unified · Split
| @@ -78,13 +78,11 @@ · 77 unmodified lines | |||
| 78 | Controller.mouseReleaseEvent.connect(function() { moveDebugCursor = false; }); | 78 | Controller.mouseReleaseEvent.connect(function() { moveDebugCursor = false; }); |
| 79 | Controller.mouseMoveEvent.connect(function (e) { if (moveDebugCursor) setDebugCursor(e.x, e.y); }); | 79 | Controller.mouseMoveEvent.connect(function (e) { if (moveDebugCursor) setDebugCursor(e.x, e.y); }); |
| 80 | 80 | ||
| 81 | |||
| 82 | |||
| 83 | function setDebugCursor(x, y) { | 81 | function setDebugCursor(x, y) { |
| 84 | nx = (x / Window.innerWidth); | 82 | nx = ((x + 0.5) / Window.innerWidth); |
| 85 | ny = 1.0 - ((y) / (Window.innerHeight - 32)); | 83 | ny = 1.0 - ((y + 0.5) / (Window.innerHeight)); |
| 86 | 84 | ||
| 87 | Render.getConfig("RenderMainView").getConfig("Antialiasing").debugCursorTexcoord = { x: nx, y: ny }; | 85 | Render.getConfig("RenderMainView").getConfig("DebugDeferredBuffer").debugCursorTexcoord = { x: nx, y: ny }; |
| 88 | } | 86 | } |
| 89 | 87 | ||
| 90 | 88 | ||