OpenGL Tutorial 53: Lens Flare @ThinMatrix
OpenGL Tutorial 53: Lens Flare  @ThinMatrix
Uploaded May 2017 | Updated November 2026, 4 days ago
Getting back to the OpenGL tutorials this week with a simple sprite-based lens flare effect!

Try out the runnable demo:
dropbox.com/sh/i6chq9yj6c80h2y/AADSGHrvODxqfhk_0JtGRB5Sa?dl=0

Starting code download (needs to be set up in a project with lwjgl.jar, lwjgl_utils.jar, and PNGDecoder jar, as well as the relevant natives):
dropbox.com/sh/vo7dwmaccrtc2ng/AAAr48L7pGsSXs0EEQtkWKspa?dl=0

Finished code download:
dropbox.com/sh/89l4xx87sdfde9y/AAD0hRdH4PbMGBC2BgPqTgbGa?dl=0

More complex lens flare technique:
john-chapman-graphics.blogspot.de/2013/02/pseudo-lens-flare.html

Particle tutorial (similar to rendering sun):
youtube.com/watch?v=6PkjU9LaDTQ

GUI tutorial (similar to rendering flare quads):
youtube.com/watch?v=vOmJ1lyiJ4A

Perspective division explained:
learnopengles.com/tag/perspective-divide


Support the series on Patreon: patreon.com/thinmatrix

Facebook Page: facebook.com/thinmatrix
Twitter: twitter.com/ThinMatrix
Tumblr: thinmatrix.tumblr.com
Instagram: instagram.com/thin_matrix
Check out my game on IndieDB: indiedb.com/games/equilinox


End of video music- Kai Engel, "Waking Stars":
freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars
OpenGL Tutorial 53: Lens FlareEquilinox Soundtrack - by Jamal GreenIndie Game Devlog #36: ProgressCity-Builder Devlog: A Fresh StartExhibiting my Game at Gamescom for the First Time!Equilinox - Java Game Devlog 14: Sun and Sky!Indie Game Devlog #39: Fish!Equilinox has been Released!Programming Weeds! - Homegrown DevlogPreparing to Exhibit my Indie Game at Gamescom!Indie Game Devlog: Two Weeks till Launch!Homegrown Devlog - New Compost System!
ThinMatrix |

OpenGL Tutorial 53: Lens Flare

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER