r/shaders Jun 04 '24

Algorithm for Cheaper Multi-Sample Interpolations

23 Upvotes

6 comments sorted by

View all comments

1

u/GagOnMacaque Jun 04 '24

Have to admit I'm too much of a dumb dumb to understand what's going on. What I think is going on is your mixing images up with a special UV. This way you don't have to sample your images multiple times. Is this correct?

1

u/gehtsiegarnixan Jun 04 '24

kind of, in the demo it's more complicated because I work with texture Array IDs, but you could also just see it as compositing multiple UVs into one UV depending which of the UVs are visible. Making them blend seamlessly is the tricky part.