🔦 Lens Refraction & Ray Tracing

Watch light rays refract through a curved lens surface

Difficulty: ● Medium

📐 Physics Formulas
n₁ sin(θ₁) = n₂ sin(θ₂)
Snell's Law
n = c / v
Refractive index
θc = arcsin(n₂/n₁)
Critical angle
v₂ = v₁(n₁/n₂)
Speed in medium
📚 Key Concepts
  • Light bends when entering different medium
  • Curved surface causes rays to converge or diverge
  • Light slows down in denser medium
  • Angle of refraction depends on refractive indices
  • Each ray bends individually based on its angle
🔬 Try This
  • Watch parallel rays converge as they enter the lens
  • Adjust refractive index to change bending amount
  • Change curvature to see different focal points
  • Increase ray count for denser light beam
  • Observe how rays slow down inside the medium
⚙️ Lens Properties
Refractive Index (n) 1.5
Glass (1.5), Water (1.33), Diamond (2.42)
Surface Curvature 150 px
Lens Thickness 150 px
Number of Rays 9
Ray Speed 1.5
Show Normals
0
Approx Focal Length (px)
0
Active Rays
0
Speed in Medium (c/n)
0
Max Refraction Angle