i need to change object’s color by clicking left button or maybe typing a key and i know in multitexture there is a simple way like obj.color=[1,1,1,True]… but how can i do that in GLSL?
just enable “object color” in the materials tab. The code should be the same… I think… yeah
obj.color = [1.0,1.0,1.0,1.0]
r, g, b, a
hum… dont works for me.
i don’t know why if i put the code in a function it doesnt work, im trying that from hours… if i put the code out of a function it works…bah
nevermind im a noob… it works thx a lot