A very simple toon lit shader example, for you to learn writing custom lit shader in Unity URP
This repository does NOT contain the full version of NiloToonURP.
Instead, it includes a simple, short and easy-to-read URP toon shader example for Unity2022.3LTS, which is intended for shader coding tutorial purposes. The shader example is licensed under the MIT license, giving you the freedom to use the code as you wish. If you'd like to retain the current tutorial shader, we recommend forking it or downloading a copy now, as it may be removed in the future.
*this README also shows photos and information about the NiloToonURP(full version)
shader ON shader OFF shader ON shader OFF shader ON shader OFF
Outline options(1/2/3)
shader ON
shader OFF
We are now developing an 'easy-to-use, high-performance, and cross-platform (including mobile, VR, and WebGL)' closed-source toon shader package—NiloToonURP—to assist Unity URP users in achieving high-quality anime/toon-like rendering.
NiloToonURP is supporting:
If you or your company/organization/team needs:
of NiloToonURP for your URP project, please send the following info to [email protected]
*we only provided NiloToonURP's download permission + tech support, we didn't work on these creations directly
(after clicking the link below, it will require you to press enter on the link again in your browser)
(after clicking the link below, it will require you to press enter on the link again in your browser)
https://www.bilibili.com/video/BV1Cg411V7qm?share_source=copy_web
https://www.bilibili.com/video/BV1ef4y1H7h9?share_source=copy_web
https://www.bilibili.com/video/BV1Jh411W7RQ?share_source=copy_web
https://www.bilibili.com/video/BV1q3411B74t?share_source=copy_web
(you need to enter the link to the browser again in order to play it)
shader ON shader OFF
shader ON normal debug shader OFF
SHADER ON BEFORE AFTER: see it in motion-> https://youtu.be/D9ocVzGJfI8
Auto Phong tessellation
Kawaii model TEST (@ganbaru_sisters)
SHADER ON SHADER OFF HD
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 only contains a very simple toon-lit URP tutorial shader example, to help people write 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 learn shader writing in URP, it is an extremely simplified version. This repository only contains ~3% of the NiloToonURP(full version)'s code, which only contains the most basic & easily understandable sections, to make sure everyone can understand the shader code easily.
It is actually a "How to write your first custom toon-lit shader in URP?" example, instead of a good-looking toon-lit shader (lots of toon-lit tricks are not included in this example shader, for tutorial reasons).
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(instead of still staying in built-in RP), so I decided to provide a simple enough URP toon-lit shader example in URP.
For this tutorial shader, you can let Unity calculate smoothed normal for you, which can produce a better outline, but doing this will make the lighting slightly incorrect.
before calculating smooth normal (print screen of the tutorial shader, not NiloToonURP)
after calculating smooth normal (print screen of the tutorial shader, not NiloToonURP)
*NiloToonURP(full version) contains many editor/runtime C# scripts, some of them are for producing correct lighting and perfect outline together automatically.
For simplicity reasons, most of the features from the NiloToonURP(full version) are removed, or else for beginners, this simple tutorial example shader will be way too complex for reading & learning. Some of the removed features are:
The easiest way to get a character model is by downloading Unity-Chan in the Unity AssetStore.
Also, here are some websites where you 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 prefab directly inside Unity https://github.com/vrm-c/UniVRM
Apply our shader to another model (2020-2 early version screenshots) https://youtu.be/uVI_QOioER4
different Background image TEST
model's creator in shader demo image/video: