RujiK
Member
Is it possible to get a sprite's world-position inside of the fragment shader without passing a uniform?
v_vPosition/in_Position would be great except that it changes on a per-pixel basis. Meaning the v_vPosition at the bottom left of the sprite is different from the top right. I am trying to figure out how to find a single position for the whole sprite.
It doesn't even need to be very accurate. I just need a position-ish number that will stay the same for the whole sprite
Thanks for your help!
v_vPosition/in_Position would be great except that it changes on a per-pixel basis. Meaning the v_vPosition at the bottom left of the sprite is different from the top right. I am trying to figure out how to find a single position for the whole sprite.
It doesn't even need to be very accurate. I just need a position-ish number that will stay the same for the whole sprite
Thanks for your help!