The material will calculate the uniform properties. Don't query GL
Remove shader variables
Events in scripting