0
Færdig

Using a convolution matrix in shader forge

Brad Hammond 8 år siden opdateret af Fabio Franconeri 8 år siden 2

I've started playing with Turing patterns and using convolution matrices and came to realize this is how a lot of different filters are done.

I was wondering if there is a way this mothodology of sampling neighbor pixels to the current one can be implimented in shader forage?

Svar

Svar
Færdig

It's possible but very cumbersome to make, at least if you have a large matrix.

But yes, just shift the UVs and sample again, and do whatever you like with the result!

Svar
Færdig

It's possible but very cumbersome to make, at least if you have a large matrix.

But yes, just shift the UVs and sample again, and do whatever you like with the result!

here's an example...

Kundesupport af UserEcho