Giter Site home page Giter Site logo

trackman / unity.package.smaa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chman/smaa

0.0 1.0 0.0 107 KB

A highly customizable implementation of Subpixel Morphological Antialiasing for Unity

License: zlib License

C# 32.07% HLSL 58.42% ShaderLab 9.51%

unity.package.smaa's Introduction

SMAA for Unity3D

This is a highly customizable implementation of Subpixel Morphological Antialiasing for Unity3D.

Tested with Unity 5+ (Personal or Pro). Works with the deferred & forward rendering paths, in gamma or linear color space, with Directx 9, Directx 11 and OpenGL targets.

It comes with a few quality presets but you can easily build your own in the inspector. Every inspector setting comes with a help popup so you shouldn't have to dig into the (documented) source code.

Right now it implements SMAA 1x (+ predication). Implementing Temporal SMAA (T2x) should be doable, but the spatial (S2x) and spatial + temporal (4x) variants aren't possible in Unity right now.

Comparison screenshots with FXAA and Supersampling.

Instructions

Drop the SMAA folder in your project and add the SMAA script to your camera (or select your camera and use Component -> Image Effects -> Subpixel Morphological Antialiasing). The effect should be the first in the post-processing chain (before Bloom, Tonemapping, DoF etc) or it will miss some edges, especially when working in HDR.

To infinity and beyond

An updated version of this effect is available in Unity's official Cinematic Image Effects repository (Unity 5.3+ only).

License

Zlib (see License.txt)

unity.package.smaa's People

Contributors

chman avatar ivan-trackman avatar anton-trackman avatar tuxzz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.