ASCII shader using GLSL PostProcessing

Hello guys :slight_smile:

Just having fun with GLSL :

Screencast from 19-02-2025 20:00:58

This shader is basically using this ASCII texture :

  • Computing pixelated B&W blocks
  • Computing matching UVs
  • Brightness along X
  • Random variation along Y

Have fun ! :stuck_out_tongue_closed_eyes:
Tricotou

17 Likes

Awesome!

1 Like

The previous ASCII texture was a random texture I found on the net, so I generated a new one with Python OpenCV :

This one has brighness on both X & Y, for about 100 different brighness values

Result is a better contrast :


Also I tested it on a more complex scene such as Hill Valley :smiley:

Screencast from 20-02-2025 12:16:51


Longer video test here :

5 Likes

retweeted !!!

1 Like

great

Maybe an improvment on Babylon.js docs ?

1 Like

So cool! : D

reminds me of this yt video by acerola

one of my favorites :3

I didn’t even know about this already existing ASCII post process :joy:


I see that yours is using, on top of a char choice, some lighting (darken / lighten chars). It was a choice not to do this on my side (to make sure the lighting came 100% from char choice). But I agree result is better.

Here is an update of my version with lighting on chars.
I also added a contrast slider

2 Likes

This is gorgeous.

1 Like