- Home /
Question by
arth9130 · Jul 19, 2021 at 04:16 PM ·
shaderglobal variable
Set Global Specular via Script
Hi. How do i property change the smoothness of hundreds of individual pieces (meshes), each with it's own material but with the same shader (Standard). I want to change the specular value on all those pieces that use the same shader, is there a simple way of doing that? Im trying with Shader.GlobalFloat but it's does do anything. I have and Enviroment system and i need to change the specular of all those meshes so it's looks like it's raining, Thanks!
Comment
Your answer
Follow this Question
Related Questions
How to force the compilation of a shader in Unity? 5 Answers
Fog/color tint shader for orthographic camera 0 Answers
for loop in shader 2 Answers
Best option to create real mirrors in terms of performance 2 Answers
Assign Texture To Material Unity 4.6 1 Answer