Mouse movement as uniform

  • onulets
  • Topic Author
More
6 years 4 months ago - 6 years 4 months ago #1 by onulets Mouse movement as uniform was created 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.
Last edit: 6 years 4 months ago by onulets.

Please Log in or Create an account to join the conversation.

  • crosire
More
6 years 3 months ago #2 by crosire Replied by crosire on topic Mouse movement as uniform
Next version will have a "mousedelta" uniform source with this data.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.