Is there an easy way to link/map/remap game object properties/variables to GLSL variables ?
So far all examples I’ve seen are either broken or too complicated.
Lets say I want to make an object automatically change it’s colors based on distance from scene center or based on it’s world position.
In GLSL vec4 color probably goes from 0.0 to 1.0 while the game object world position is a vec3 I’m guessing and it goes way past 1.0 value so it needs remapping/scaling.
Also the 2D Filter “motion blur” is not working in v2.74. Is that a bug or is it just my version doing that ?
I also need to run one script at 240 fps while the rest of the scripts update at 60 fps ? Is there a way to do that or it’s
too complicated ? I know you could change the fps in the physics engine to 240fps and limit the other scripts to not run every logic tick but is there some better way to set different refresh rates for different things ?
Here is an example file. I’m trying to automate or link some of the variables in the bloom shader to other variables in the scene but it’s not working.