Hi! I have a special problem in my project, I need to exchange the R,G and B channel of a RenderTexture. Now i achieve this in OnRender{} and exchange R,B and B channel pixel by Pixel. Can I ExChange R,G and B channel using Shader?
You can do that in shaders (r,g,b,a are the color channels, same thing if you use x,y,z,w instead):
float4 myColor = myTexture.rgba;
float4 myNewColor = myTexture.abgr;