glUniform4d need 4 doubles not 3.