@bogdan_ov c'moooon this is so cool, could you share a bit more about what's happening here ? I'm fairly well aware of rust and opengl
If I may : you a have a little overlap problem on the text when it comes back on the right ;)
@bogdan_ov c'moooon this is so cool, could you share a bit more about what's happening here ? I'm fairly well aware of rust and opengl
If I may : you a have a little overlap problem on the text when it comes back on the right ;)
@lndf yeah, this is a part of a bigger project of mine, but i still haven't finished it yet...
(checkout the `speaker-movie` branch)
https://github.com/bbogdan-ov/chip-maximator
@lndf yes, almost.
First i create a texture on which i render this head. I also render this texture as a sprite onto the screen.
To make this glitch effect:
- Stop clearing this render texture.
- Render this texture (i also crop it and apply a random offset) onto itself (you shouldn't do that because it may not work on all GPUs, writing and reading a texture at the same time is not good at all).
- And render the head.
This happens 60 times per second. That's it.