- Home /
How can I pass arguments to a Terrain shader at runtime?
I'm trying to map one of the Unity Pro water shaders to an object with a Terrain component, but the water script seems to require a Renderer component so it can directly access the assigned material to pass parameters to the water shader. Does anyone know of a way to do this with Terrain components?
Comment
Hi, I pass parameters to a custom terrain shader using shader global parameters = Shader.SetGlobalFloat etc... It would not work with multiple terrain though.