Change a texture parameter of the shader.
It is important to note that the texture parameter must remain alive as long as the shader uses it - no copoy is made internally.
To use the texture of the object being draw, which cannot be known in advance, you can pass the special value Shader.CurrentTexture.
The name of the variable to change in the shader. The corresponding parameter in the shader must be a 2D texture (sampler2D GLSL type)
Texture to assign
See Implementation
Change a texture parameter of the shader.
It is important to note that the texture parameter must remain alive as long as the shader uses it - no copoy is made internally.
To use the texture of the object being draw, which cannot be known in advance, you can pass the special value Shader.CurrentTexture.