is it possible to pass game engine values, for example the value of a property, to a shader ?
my goal is to change the diffuse color of an object, depending on some value modified by user (keyboard etc), or by an object position etc.
I don’t know how to pass the value to the C functions, the one with gl_FragColor. I’m able to change the color from one to another, (no need for a variable inside the C thing in this case) but I can’t produce a transition for example.
I’m reading the examples in the API and the amazing shaders made by martinsh, but it’s a bit hard to understand at the beginning… and I don’t find something similar to this need.
thanks
edit : found ! Focus_U and Focus_V use props from the FX empty (owner)
http://blenderartists.org/forum/showthread.php?t=152343