<p>It's a variant to <a href="https://en.wikipedia.org/wiki/Projective_texture_mapping" rel="nofollow noreferrer">projective texture mapping</a>. </p>

<p>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.</p>

CC BY-SA 4.0
2019-03-11T11:36:28.750Z
2019-03-11T11:36:28.750Z
ratchet freak
<p>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.</p>

CC BY-SA 4.0
2019-03-09T13:06:39.987Z
Are you talking about refraction or total internal reflection?
lightxbulb
CC BY-SA 4.0
2019-03-11T09:15:49.140Z
A little more info would be useful. Is there a picture online of the effect you are after?
Simon F
<raytracing><lighting>
How to simulate a line laser diode?
kjwill555
# How to simulate a line laser diode?

(Asked by: username_0 on 2019-03-09)

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.

**Tags:** raytracing, lighting

> **Comments:**
> **username_1**: Are you talking about refraction or total internal reflection?  
> **username_2**: A little more info would be useful. Is there a picture online of the effect you are after?  

---

## 1 answers

### Answer by username_3 on 2019-03-11. Score: 1

It's a variant to [projective texture mapping](https://en.wikipedia.org/wiki/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.


---

