| website | bbogdan-ov.github.io |
| website | bbogdan-ov.github.io |
@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.
@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
a peaceful creature lives in a peaceful world