We are now developing a "easy-to-use + high-performance + cross-platform(include mobile)" Closed source toon shader package - NiloToonURP, to meet the toon shading needs of most URP's user.
NiloToonURP is tested and working correctly on 2019.4LTS and 2020.3LTS (confirmed on 2021-3-11).
Download NiloToonURP android .apk demo (2020.3LTS build):
Download NiloToonURP PC, Mac, and Linux standalone demo (2020.3LTS build):
NiloToonURP's runtime video:
If you/your company needs
of NiloToonURP for your URP project, please send the following info to nilotoon@gmail.com
NiloToonURP's preview image:
If you want to keep the current tutorial shader, please fork it or download a copy now since it may be removed in the future.
shader ON
shader OFF
shader ON
shader OFF
SHADER ON
BEFORE
AFTER:
see it in motion-> https://youtu.be/D9ocVzGJfI8
Auto Phong tessellation
Kawaii model TEST (@ganbaru_sisters)
Upgraded to Unity2020.2 (URP 10.2.1)
SHADER ON
SHADER OFF
HD
shader ON
shader OFF
shader ON
shader OFF
BEFORE
AFTER:
BEFORE
AFTER:
add 2D hair shadow & rim light
BEFORE
AFTER:
BEFORE
AFTER
see it in motion -> https://youtu.be/EgxiWPk-vaE
Fake Skin SSS & specular
BEFORE
AFTER
This repository contains a very simple toon lit shader example, to help people writing their first custom toon lit shader in URP.
This example shader's default result(without editing material params) = the following picture
Because this example toon lit shader aims to help people learning shader writing in URP, it is an extremely simplified version of the full version one. This repository only contains ~10% of the full version shader, which only contains the most useful & easy to understand sections, to make sure everyone can understand the shader code easily.
It is actually a "How to write your first custom lit shader in URP" example, instead of a good-looking toon lit shader example (lots of toon lit tricks are not included in this example shader, for tutorial reason).
Lots of my shader friends are looking for a toon lit example shader in URP (not Shader Graph), I want them to switch to URP with me (instead of still staying in built-in RP), so I decided to provide a simple enough URP toon lit shader example.
For this tutorial shader, you can let Unity to calculate smooth normal for you, which can produce better outline, but doing this will make lighting slightly incorrect.
before calculate smooth normal (printscreen of tutorial shader, not NiloToonURP)
after calculate smooth normal (printscreen of tutorial shader, not NiloToonURP)
*NiloToonURP contains a few editor C# scripts, which can help the shader to produce correct lighting and perfect outline together.
For simplicity reason, I removed most of the features from the NiloToonURP (deleted 90% of the original shader), else this example shader will be way too complex for reading & learning. The removed features are:
The easiest way to get a character model is by downloading Unity-Chan in the assetstore.
Also, here are some websites that can download models(If the creator allows it)
if you downloaded a .pmx file, use MMD4Mecanim to convert it to .fbx & prefab directly inside unity http://stereoarts.jp/
if you downloaded a .vrm file, use UniVRM to convert it to .fbx & prefab directly inside unity https://github.com/vrm-c/UniVRM
Apply our shader to another model (2020-2 early version screen shots) https://youtu.be/uVI_QOioER4
different Background image TEST
model's creator in shader demo image/video:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。