Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavelkouril/unity-lowpoly-shader
Unity Shader for mesh rendering in lowpoly style
https://github.com/pavelkouril/unity-lowpoly-shader
lowpoly shader unity3d
Last synced: 8 days ago
JSON representation
Unity Shader for mesh rendering in lowpoly style
- Host: GitHub
- URL: https://github.com/pavelkouril/unity-lowpoly-shader
- Owner: pavelkouril
- License: mit
- Created: 2016-11-16T00:06:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T17:23:30.000Z (over 7 years ago)
- Last Synced: 2024-10-23T03:11:39.000Z (17 days ago)
- Topics: lowpoly, shader, unity3d
- Language: GLSL
- Size: 327 KB
- Stars: 121
- Watchers: 13
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vrchat - Low-poly Shader
- awesome-unity-open-source-on-github - unity-lowpoly-shader - Unity Shader for mesh rendering in lowpoly style (Low Poly)
README
# Unity Low-poly Shader
This shader is a simple way to render your smooth meshes in the low poly, flat shaded style.
![Before X After comparison](http://i.imgur.com/8blLN5t.png)
## Usage
To use it, just change the shader of a material to `PavelKouril/LowPoly Shader\LowPoly`. The shader takes the mesh and changes the texture coordinates and normals in geometry shader; the texture coordinates are changed to the center of the triangle, and for normals, face normals are calculated.
HOWEVER, there are some limitations:
- Sometimes, the lightning/shadows seems to be kinda off. **If you find a reproducible case where the shader is acting funny, please submit an issue.**
- It works for terrain, but the results are sometimes looking subpar. This is due to the way the Unity terrain works. A separate set of shaders for terrain would be probably needed.
- If you are unlucky, the conversion of the texture coordinates will result in a badly looking face. I probably can't do anything with this, sorry. :(## Requirements
- Unity 5.6 (it also should work on 5.4 and 5.5, but without any guarantees)
- Geometry Shaders support on your hardware (this means D3D10+ GPU)## Contributing
Contributing is definitely welcome! All you need to do is send a pull request with your patch. :)
If you just have some ideas what the shader is lacking (or find a bug!), feel free just to create an issue with detailed description or buggy use-case of the shader (ideally include pictures and steps to recreate). However, please, do not use issues for support questions.