Topic was automatically imported from the old Question2Answer platform.
Asked By
blank
Hey guys, just a quick question, as I really don’t understand shaders, and last time I used them was in 2.1, I was wondering what is the alternative for the no more existent function texscreen() which was used to read screen with Vec2 parameter.
I have a chromatic aberration shader hacked together from multiple sources from a few years prior that I’m hopelessly trying to fix because of this, anyone able to help?
If you are writing a screen-reading shader, you may replace TEXTURE_PIXEL_SIZE by SCREEN_PIXEL_SIZE.
Also, replace texscreen by texture(SCREEN_TEXTURE, the_uv);
First of all thank you very much, as this worked for the chromatic aberration, now I tried adding the pixelization effect from the official demos like this: