Bug: Light sprite with Virtual Resolution

Home Forums Monkey 2 Development Bug: Light sprite with Virtual Resolution

This topic contains 3 replies, has 3 voices, and was last updated by  Playniax 2 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10378

    therevills
    Participant

    I’ve altered the simple light example to implement a virtual resolution, but when I move the mouse around the light sprite doesnt move correctly with the mouse when I maximize the window:

    [/crayon]
    #10385

    Mark Sibly
    Keymaster

    Woah, had to dig deep to find that one, but once I did the fix was surprisingly simple and halved the length of the light vertex shader in the process.

    Fix push to develop branch, but you should really only need to update this file:

    https://github.com/blitz-research/monkey2/blob/develop/modules/mojo/graphics/shaders/light.glsl

    #10386

    therevills
    Participant

    Thanks Mark! I’ll test in a bit 🙂

    #10387

    Playniax
    Participant

    Great find therevills! Thanks Mark!

    Btw, I found that Pyro’s own virtual stuff did not suffer the problem…

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.