Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Fxaa3

Discussion in 'Shaders' started by Deleted User, Jul 7, 2011.

  1. Deleted User

    Deleted User

    Guest

    After reading this thread, I thought I'd have a go at converting the latest version to Unity, FXAA3. It seems to work, but is a fair bit slower. Here is an example of the results:


    And attached is the shader/script for the effect (needs Pro, of course, and is based on code Copyright 2010/2011 NVidia Corporation - full disclaimer in shader source).

    Edit: removed a redundant texture read that was annoying me.

    *** Newer version in post #6 ***
     

    Attached Files:

    Last edited by a moderator: Aug 3, 2011
  2. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    Are the results better than the included AA image effect?
     
  3. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    What the difference from the previous FXAA (from Slin)?
     
  4. Deleted User

    Deleted User

    Guest

    Here you go (I only wrote it as an exercise anyway):
    (all times are recorded on a PC with a Radeon HD5750 in deferred rendering)

    NoAA (3.4ms/frame)

    Edge Blur - built-in and most adjustable (3.9ms/frame)

    FXAA2 from Slin (3.7ms/frame)

    FXAA3 (3.6ms/frame)
     
  5. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    So the third version is sharper? hmm interesting. Thanks for sharing this, i'll check out.

    regards
    -rea-
     
  6. Deleted User

    Deleted User

    Guest

    Here is the Unity port of the console version of FXAA3.11. It is approximately the same speed and quality as the last version ( based on 3.8 ), but is tweakable, unlike the last version.
     

    Attached Files: