switch from Double to Float to match GL