We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to write a shader that takes in a main texture, splits it in 9 equal pieces and outputs only the one in the center, but for each pixel, overlay the corresponding ones from the other 8 pieces added together (actually only one would actually have a color for that pixel, the others would be transparent). How would i go around doing something like that?Thanks!!
Answers
This should get you started:
And the image (the sketch will download it automatically):
;k;
Sorry, don't know. I never used Unity.
But as my implementation of the shader works in Processing it's pretty clear that either your Unity-port of the shader is flawed or the binding/rendering in Unity itself. If you'd upload your shader code maybe someone would be able to help you.
Anyhow, you should ask Unity related questions over at the Unity forums.
(restored deleted question, closed thread.)