Geeks3D Forums

GeeXLab => GeeXLab - english forum => Topic started by: Stefan on December 09, 2015, 09:59:40 PM

Title: Y-axis of mouse twisted issue
Post by: Stefan on December 09, 2015, 09:59:40 PM
RenoM released a ninefold shader with mouse control. (https://www.shadertoy.com/view/XddGD4)

After porting to GeeXLab format (https://drive.google.com/file/d/0BykQ4pHxfGQWWVlpYzllV2UwZWs/view) i noticed that the y-axis of mouse is twisted, i.e. you have to move the mouse in the upper left corner.



(https://farm1.staticflickr.com/749/23270305329_28e6de312d_o.png)
Title: Re: Y-axis of mouse twisted issue
Post by: Stefan on December 09, 2015, 11:23:31 PM
Download again from here (https://drive.google.com/file/d/0BykQ4pHxfGQWQkVEXy14NGI2RFE/view)

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)