# LensFlare for WebGPU?

**URL:** <https://discourse.threejs.org/t/lensflare-for-webgpu/68463>\
**Category:** Questions\
**Tags:** lens-flare, webgpu\
**Created:** [July 23, 2024, 8:06am UTC](https://discourse.threejs.org/t/lensflare-for-webgpu/68463 "2024-07-23T08:06:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![phil\_crowther](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/phil_crowther/32/64202_2.png) [@phil\_crowther](https://discourse.threejs.org/u/phil_crowther)\
**Post date:** [July 23, 2024, 5:30pm UTC](https://discourse.threejs.org/t/lensflare-for-webgpu/68463/4 "2024-07-23T17:30:13Z")

</div>

Here is [one idea](https://codepen.io/Phil_Crowther/pen/OJeXrBg?editors=0010). The Sprite code is at lines 162-175.  
The sprites seem to stay fairly aligned with the LensFlare objects - at least vertically.  
I may need to figure out how to make them align better horizontally.  
I also need to figure out how to turn them off. I tried comparing the lat/lon of the sun with the camera.rotation. But I think the camera.rotation is in quaternions, not eulers.

---

_[View the full topic](https://discourse.threejs.org/t/lensflare-for-webgpu/68463)._
