Search Unity

SMAA for Unity

Discussion in 'Scripting' started by damonwall, Sep 19, 2013.

  1. damonwall

    damonwall

    Joined:
    Jan 22, 2013
    Posts:
    14
  2. 3agle

    3agle

    Joined:
    Jul 9, 2012
    Posts:
    508
    AreaTexture.cs and SMAA.shader both don't compile in Unity 3.5.6f4

    Code (csharp):
    1. Shader error in '': GLSL vertex shader: ERROR: 0:351: 'round' : no matching overloaded function found  at line 157
    Code (csharp):
    1. Assets/Standard Assets/SMAA/AreaTexture.cs(23,26): error CS1061: Type `UnityEngine.Texture2D' does not contain a definition for `alphaIsTransparency' and no extension method `alphaIsTransparency' of type `UnityEngine.Texture2D' could be found (are you missing a using directive or an assembly reference?)
     
  3. damonwall

    damonwall

    Joined:
    Jan 22, 2013
    Posts:
    14
    Ah, forgot to mention, it's for Unity Pro 4+ only, impossible for me to download older versions and implement for them too
    Though, these problems are quite easy to overcome - just remove alphaIsTransparency line and make
    #define round(x) floor(x + 0.5) in shaders. Should work
     
    Last edited: Sep 20, 2013
  4. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,475
    If you ask a moderator, they can move this post to the proper sector of the forum. (Showcase)
     
  5. a3dline

    a3dline

    Joined:
    Dec 28, 2013
    Posts:
    17
    Smaa error1.jpg
    u-4.6