I'm interested in simulating the way a laser line deforms when it strikes an object and runs along the surface of it. Which concepts would be involved? Is there any 3D modeling software out there that does this already? I'd like to implement it into my Eyeshot-based program at some point.

  • $\begingroup$ Are you talking about refraction or total internal reflection? $\endgroup$
    – lightxbulb
    Mar 9, 2019 at 13:06
  • 2
    $\begingroup$ A little more info would be useful. Is there a picture online of the effect you are after? $\endgroup$
    – Simon F
    Mar 11, 2019 at 9:15

1 Answer 1


It's a variant to projective texture mapping.

The simple way to do this in the fragment shader by using the position of the fragment to decide whether it is close enough to the plane of the laser to light up.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.