|
Adjust a Material's Shininess Through Script in Realtime. Can it be done?
(comments are locked)
|
|
You can use something like this:
Where yourMaterial is a reference to your material yourMaterial i put there the name of material or like var yourMaterial:material;
Jul 14 '10 at 03:06 PM
yeoldesnake 1
renderer.material would work
Jul 14 '10 at 03:10 PM
Mike 3
ok , would
Jul 14 '10 at 03:41 PM
yeoldesnake 1
should do, assuming that's the variable name in the shader
Jul 14 '10 at 06:30 PM
Mike 3
well thats what i was asking , if it was the variable name in the shader
Jul 15 '10 at 09:20 AM
yeoldesnake 1
(comments are locked)
|
