- Home /
How to move a specific texture from a shader?
From this properties of a Shader:
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_AlphaMap ("Additional Alpha Map (Greyscale)", 2D) = "white" {}
I want to move the _AlphaMap so I can achieve a similar mask effect. I already tried something like:
renderer.material.SetTextureOffset ("_AlphaMap", new Vector2(offset,offset));
with no effect.
Can someone help me?
Comment
Your answer
Follow this Question
Related Questions
Shader CG not taking tiling into account 2 Answers
Fixing Texture Offset to World Coordinates? 0 Answers
Shader with two textures separated by an alpha channel? 1 Answer
Offset textures individually into specific world directions 2 Answers
Is using texture offset with displacement shader possible? 0 Answers