glsl int to float not working code example Example: glsl int to float int index = 5; float indexFloat = float(index);