Code Monkey home page Code Monkey logo

unity-wireframe's Introduction

Unity Wireframe Shaders

These are general purpose wireframe shaders adapted from Unity's built-in SpatialMappingWireframe shader.

Unity Forums Thread

Requirements

  • These shaders will only work on devices that support at least Shader Model 4.0. Most mobile devices do not meet this requirement.

Usage

  • Add the Wireframe directory to your Unity project's Assets directory.
  • To use the wireframe shaders, set your material's shader to SuperSystems/Wireframe, SuperSystems/Wireframe-Transparent, or SuperSystems/Wireframe-Transparent-Culled.
  • To use the replacement shader image effect, add the WireframeImageEffect component to your camera. Some other effects like GlobalFog will interfere with the replacement shaders and will need to be disabled.

License

All code in this repository (unity-wireframe) is made freely available under the MIT license. This essentially means you're free to use it however you like as long as you provide attribution.

unity-wireframe's People

Contributors

chaser324 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity-wireframe's Issues

MacOS Metal issue

Shaders don't seem to work with Metal on MacOS.
Switching graphics api to OpenGL fixes the issue.
image

Triangle distorsion

When I place you shader in my scene I have a distortion acording to the camera angle.
image
When I'm fly far from the ground it's pretty good but when I'm close, I see a distortion.

What I've done :

  • Add your project to my assets
  • Create a material with SuperSystems/Wireframe-Shaded-Unlit shader (I tried with others)
  • Create a plane with this material
  • Add WireframeImageEffect scipt to my camera (I tried with or without)

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.