1 2 3 4 5 6 7 8
uniform float angle; uniform float scale; float global_variable = cos(angle) * scale; float function(void) { return global_variable; }