The refractive index n measures how strongly a material bends light: it is the sine of the angle in air divided by the sine of the angle in the material. A higher index bends light more and means light travels more slowly inside, since n = c divided by the speed in the material. For one material n stays the same at every angle. Pick a material and set the angle of incidence to reach the target angle inside it.