Giter VIP home page Giter VIP logo

unity-sdf-generator's Introduction

Unity SDF Generator

Unity SDF generator and SDFs smooth

Demo

How to use

Drag SDF_Generator.cs anywhere you want.

And then you can find it here: Windows > SDF Generator

  • Drag all the textures to Sources. Remember to set the textures to Read/Write.

  • If samples is 0, you will get a completely smooth output, otherwise the output is posterized according to the samples.

  • Texture with smaller white area should be on top.

  • I drew some pictures for this tool, if you are interested, you can find them here: images/Demo/

    Try it and have fun !

Todo

  • Compute shader based version
  • Shader based version
  • Add editor

⚠️ RWTexture2D or RWTexture2DArray doesn't work in Editor Mode ?

Ref:

http://www.codersnotes.com/notes/signed-distance-fields/

https://shaderfun.com

https://zhuanlan.zhihu.com/p/337944099

unity-sdf-generator's People

Contributors

xudxud avatar

Stargazers

 avatar  avatar ZTIF avatar Bad Zhang avatar Andrés Leone Gámez avatar Roman Fedorov avatar Vatsal Ambastha avatar  avatar  avatar Luobin Wang avatar Ke Jyun Wu avatar 刘政 avatar zyzyx avatar  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.