optimize gl constant compile-time multiplications