Realistic Lens Flare
by SpinningCube
Description
A quick test project I made to generate lens flares, the kind of lens effect which would be visible when you point a camera at a bright light source like the sun. The end result is a quite nice-looking effect. The effect is composed of many individual lens flare elements. I made two of the lens flare textures using external image editing software, each one is a simple shape colored white with a radial gradient ranging from opaque at the edges to partially transparent at the center. More transparency is added by the project itself. This is a clone-based method, which means each lens element is a clone (A stamp-based version is perfectly doable, though). The clone is assigned a random size, position factor, shape, and transparency. There are 30 clones in total, though this can be changed in the code depending on how many lens elements are needed. The lens elements' positions are all multiples of the sun position. Everything is done in 2D, but this can be applied to a 3D project if Sun X and Sun Y are set to the projected coordinates of the sun. This project doesn't lag very much, but it does look smoother on TurboWarp with these settings: https://turbowarp.org/666704223?hqpen&fps=60&limitless Updated 16 April 2022 - Added exposure adjustment, where the background darkens when looking directly at the sun. Changed the sun streaks to make them fade in when looking directly at the sun. Released 3 April 2022 Anyway here's a bunch of tags: #Sun #Light #Sunlight #Day #Sky #Glare #Camera #Lens #Flare #Effect #2.5D #3D #Math #Clones #Mobile
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
VYOND EFFECTS THIRTEEN
by lateone1
dog
by thekid
beat up tanner (2)
by pmz34
talking tom and ben news remix
by IOK780
Beat Up Airfryer from BFDIA 15 [3]
by JPPORTUGAL
Dragon Ball Z Xenoverse X
by amazingmario2011
Fidget Spinner
by OM_07
Spiffy Pictures.EXE Buttons True Bonus 100
by mimitrini1return
[Playable!] FNF VS QT REWIRED (+Pico Mix!) #all #trending #games #music #fnf
by Kyls015
Ultimate Disbelief Papyrus Fight
by zebron
Beat up the Zombie Guy 4.1 =)
by wadley123
Beat up Elmo 2 but with not music
by itika11
Fishing Legends vr.1.3
by pilosaur
One Night at Franklin's remaster
by DonovanGaming88
The child
by Kingcarlosazul
Beat up Roblox Noob (READ DESC)
by SESLiCh23
Beat Up Squidward: Ultimate Edition 222
by sussybaka1011111111
Geometry Dash Wave
by dima_akmol
(UPDATED) Interactive Spanish Alphabet Lore
by AlfabetonsOfficial
SI: The Scratch Internet
by rutledgecx
pleykidz bandh 8 (ore mey goysh itz nerly de endh!)
by ATOfficial
Undertale full game!
by amogiman23
Add yourself in: Fighting in a vintage MacOS (Running MacOS 9) [13]
by TheJosemantor
Foxo OS 1.1
by DanisVintergatan