Follow

Using the red and green channels of an image to store non-visual information (in this case, offsets) is a really great technique because it lets you paint data in Photoshop, but the downside is that it is the ugliest fucking thing in the world while you’re doing it

@christinelove That is amazing and genius. How did you code it in particular?

@alice The shader adds the value of the R channel minus 0.5 to the screen texture's U, and the G value minus 0.5 to the V. So if you paint with the colour #808000 it'll draw in the normal place—less red and it'll move leftwards, more red and it'll move rightwards, etc

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!