Suppose I have a texture.
I've written a surface shader that takes this texture and divide the RGBA values by 2.
How can I apply this shader in the code to modify my texture? I imagine something like this:
public Texture t;
public Material m; //material that contains the shader
public void ApplyShader(){
Texture t2 = Apply(t, m);
}