Mouse movement as uniform
- Topic Author
- Posts: 1
2 years 2 months ago - 2 years 2 months ago #1 by onulets
Hello. I could not find a way to get how much the mouse moved during the last frame. A partial solution to this is to save the previous "mousepoint" uniform and subtract it to the current value, but values are clipped when the cursor reaches the border of the game window (even if the cursor is not visible in game). So I think a uniform that gives the mouse motion regardless of the cursor would be nice.