Author Topic: Y-axis of mouse twisted issue  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4386
    • View Profile
Y-axis of mouse twisted issue
« on: December 09, 2015, 09:59:40 PM »
RenoM released a ninefold shader with mouse control.

After porting to GeeXLab format
i noticed that the y-axis of mouse is twisted, i.e. you have to move the mouse in the upper left corner.





Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4386
    • View Profile
Re: Y-axis of mouse twisted issue
« Reply #1 on: December 09, 2015, 11:23:31 PM »
Download again from here

I almost fixed the mouse, don't leave lower left corner.

Code: [Select]
gh_gpu_program.uniform4f(shadertoy_prog, "iMouse", mx, -(my - winH), 0, 0)