Use f32 instead of f64.

This avoids a few copies and casts since opengl uses f32.