LensFlare shader for Godot?

SchusterSchuster Posts: 369Member
edited February 2017 in Shaders

Can I ask if anyone tried or have a lens flare shader for great sunny scenes?


  • derevotyanderevotyan Posts: 52Member

    Maybe you just get screen coordinates of light source in screen space like X and Y where they are -1..1

    Then you multiply those by some coefficients and draw sprites on screen

    Seems really simple, but I do not yet know how to get screen coordinates from get_global_transform()

    I believe it is more efficient than using a shader

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file