glsl int to float
snippet in c

glsl int to float

user1940

int index = 5;
float indexFloat = float(index);