C# Animate Secondary "Detail" Maps Offset value
I'm using this code to animate the offset value of the main texture.
render.material.mainTextureOffset = new Vector2(0, offset);
But I can't figure out how to animate the Secondary "Detail" Map in the material. How do I access the offset value for that texture?
I'm scrolling the texture coordinates to simulate waves on a water surface.
Look up "unity change shader value." Will take you to older answers Qs about that here.
Generally, the reason something may not be supported on a particular device is that you wouldn't want to - the device either can't handle it, or wouldn't run at more then 5 fps (but I have no specific knowledge of your case.)
Answer by KristofferH · Apr 09, 2016 at 11:58 PM
Thanks for the tip. I found some information about that, however I also found that the second bump map is not supported on mobile devices, and that is my target platform.
Your answer
Follow this Question
Related Questions
I'm trying to get a material on a gameobject to offset slightly over time and can't figure it out. 0 Answers
cinemachine and character mocap animation offsets 0 Answers
How to modify coliders during animation 0 Answers
My movement animation doesnt respect my scroll rect 0 Answers
How can I animate UV offsets of multiple materials? 0 Answers