History

Some cleanup, still trying to solve the problem

Olivier Prat committed 8 years ago

Commit c27f3dc1 parent 0f467ce7 files · +43 −63Browse files

Showing the changes to scripts/developer (1 of 7 files). Show all

Unified · Split

scripts/developer/utilities/render/luci.js+3−5
@@ -78,13 +78,11 @@ · 77 unmodified lines
7878 Controller.mouseReleaseEvent.connect(function() { moveDebugCursor = false; });
7979 Controller.mouseMoveEvent.connect(function (e) { if (moveDebugCursor) setDebugCursor(e.x, e.y); });
8080
81−
82−
8381 function setDebugCursor(x, y) {
84− nx = (x / Window.innerWidth);
85− ny = 1.0 - ((y) / (Window.innerHeight - 32));
82+ nx = ((x + 0.5) / Window.innerWidth);
83+ ny = 1.0 - ((y + 0.5) / (Window.innerHeight));
8684
87− Render.getConfig("RenderMainView").getConfig("Antialiasing").debugCursorTexcoord = { x: nx, y: ny };
85+ Render.getConfig("RenderMainView").getConfig("DebugDeferredBuffer").debugCursorTexcoord = { x: nx, y: ny };
8886 }
8987
9088