RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Lightweight LUT-Based Scanline Glow Concept + Prototype GLSL

    Scheduled Pinned Locked Moved Ideas and Development
    shader
    2 Posts 2 Posters 747 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RionR
      Rion
      last edited by Rion

      torridgristle over at the Libretro forums have created a Lightweight LUT-Based Scanline Glow Concept + Prototype GLSL shader.

      Quote

      *The core concept is using a small texture made of several 1px-wide scanline textures meant to repeat and fill the screen, but from one side to the other in the texture the different scanline textures bloom outward. Then a quick luminosity function determines how bright the screen is at a given position and that value is used as the x coordinate, or y coordinate if vertical scanlines, of a 1px slice of the texture.

      This results in scanlines that appear to glow / bloom outward when they’re bright, and remain as thin as you design them to be when it isn’t bright, resulting in a smoother image that preserves bright areas and makes the effect appear less static, while only using simple multiplication, addition, and a small texture lookup.*

      GritsScanlines

      Native Scanlines

      GritsScanlines

      Native Scanlines

      GritsScanlines

      Native Scanlines

      GritsScanlines

      Native Scanlines

      Edit: added more picture comparison.

      FBNeo rom filtering
      Mame2003 Arcade Bezels
      Fba Arcade Bezels
      Fba NeoGeo Bezels

      1 Reply Last reply Reply Quote 1
      • dankcushionsD
        dankcushions Global Moderator
        last edited by

        very cool! the libretro forum's images show the difference more clearly. it would be cool to benchmark this, crt-pi, and the zfast crt shader.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.