Quantcast
Channel: Modifying Shader Properties from C# - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Leonarbitrary Nonsense for Modifying Shader Properties from C#

As Poultryghast mentioned, I'd recommend getting into the habit of using MaterialPropertyBlocks, as the performance gains are quite notable.Here's another link to a more condensed and high-level view...

View Article



Answer by Poultryghast for Modifying Shader Properties from C#

You never actually set the material heightMapX back to the renderer. Try thisRend.material = heightMapX to actually apply the values of the material to the shader.Also, every time you do this it...

View Article

Modifying Shader Properties from C#

I am trying to modify a custom shader's properties form C#.I'm able to see the properties updating in the inspector, but I don't see the changes reflected in the game unless I manually enter modify the...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images