You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+91-93Lines changed: 91 additions & 93 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -759,134 +759,133 @@ shader OFF
759
759

760
760

761
761

762
-

763
-

764
-

765
-

766
-

767
-

768
-

769
-

770
-

771
-

772
-

773
-

774
-

775
-

776
-

777
-

778
-

779
-

780
-

781
-

782
-

783
-

784
-

785
-

786
-

787
-

788
-

762
+

763
+

764
+

765
+

766
+

767
+

768
+

769
+

770
+

771
+

772
+

773
+

774
+

775
+

776
+

777
+

778
+

779
+

780
+

781
+

782
+

783
+

784
+

785
+

786
+

787
+

788
+

789
789

790
790
791
791
-------------------
792
792
793
793
SHADER ON
794
-

795
-

794
+

795
+

796
796
BEFORE
797
-

797
+

798
798
AFTER:
799
-

799
+

800
800
see it in motion-> https://youtu.be/D9ocVzGJfI8
801
801
802
802
---
803
803
3D enviroment model TEST
804
-

805
-

804
+

805
+

806
806
see it in motion-> https://youtu.be/GcW0pNo-zus
807
807
---
808
808
湊 あくあ(みなと あくあ,Minato Aqua) model TEST
809
-

810
-

811
-

809
+

810
+

811
+

812
812
see it in motion-> https://youtu.be/7zICgzdxuGg
813
813
---
814
814
see it in motion-> https://youtu.be/X3XoYMTleJ0
815
815
---
816
816
Auto Phong tessellation
817
817
818
818
(shader off, no tessellation)
819
-

819
+

820
820
(shader on, no tessellation)
821
-

821
+

822
822
(shader on, enable tessellation! Phong tessellation can make your model smooth without changing your .fbx)
823
-

823
+

824
824
see it in motion-> https://youtu.be/D-MxyBa0nJE
825
825
---
826
826
827
827
Kawaii model TEST (@ganbaru_sisters)
828
-

829
-

828
+

829
+

830
830
831
-
Upgraded to Unity2020.2 (URP 10.2.1)
832
831
SHADER ON
833
-

832
+

834
833
SHADER OFF
835
-

834
+

836
835
HD
837
-

836
+

838
837
839
838
shader ON
840
-

839
+

841
840
shader OFF
842
-

841
+

843
842
844
843
---
845
844
846
845
BEFORE
847
-

846
+

848
847
AFTER
849
-

848
+

850
849
see it in motion-> https://youtu.be/KpRkxPnHuK0
851
850
---
852
851
BEFORE
853
-

852
+

854
853
AFTER
855
-

854
+

856
855
(more shadow from trees)
857
-

856
+

858
857
---
859
858
860
859
BEFORE
861
-

860
+

862
861
AFTER:
863
-

862
+

864
863
see it in motion-> https://youtu.be/hUWacEQH6js
865
864
---
866
865
BEFORE
867
866
868
-

867
+

869
868
870
869
AFTER:
871
870
872
-

871
+

873
872
874
873
BEFORE
875
874
876
875
877
-

876
+

878
877
879
878
880
879
AFTER:
881
880
882
881
883
-

882
+

884
883
885
884
886
885
add 2D hair shadow & rim light
887
886
888
887
889
-

888
+

890
889
891
890
892
891
@@ -896,83 +895,83 @@ see it in motion-> https://youtu.be/S67GlGAnvWA
896
895
897
896
---
898
897
BEFORE
899
-

898
+

900
899
AFTER:
901
-

900
+

902
901
903
902
see it in motion-> https://youtu.be/M6FKoEiOAzU
904
903
---
905
904
-------------------
906
905
BEFORE
907
-

906
+

908
907
AFTER:
909
908
Sunny + StreetLight ON
910
-

909
+

911
910
Sunny + StreetLight OFF
912
-

911
+

913
912
Night + StreetLight ON
914
-

913
+

915
914
Night + StreetLight OFF
916
-

915
+

917
916
see it in motion -> https://youtu.be/jDSnJmZrKPw
918
917
---
919
918
BEFORE
920
-

919
+

921
920
AFTER
922
-

921
+

923
922
---
924
923
BEFORE
925
-

924
+

926
925
AFTER
927
-

926
+

928
927
see it in motion -> https://youtu.be/ZfSZOHTBypc
929
928
---
930
929
BEFORE
931
-

930
+

932
931
AFTER
933
-

932
+

934
933
see it in motion -> https://youtu.be/EgxiWPk-vaE
935
934
936
935
---
937
936
BEFORE
938
-

937
+

939
938
AFTER
940
-

939
+

941
940
see it in motion -> https://youtu.be/Ty4DXLFqqDo
942
941
---
943
942
BEFORE
944
-

943
+

945
944
AFTER
946
-

945
+

947
946
see it in motion -> https://youtu.be/cebGl_MaWnI
948
947
---
949
948
BEFORE
950
-

949
+

951
950
AFTER
952
-

951
+

953
952
see it in motion ->https://youtu.be/nl5z0r8a9vk
954
953
---
955
-

956
-

957
-

954
+

955
+

956
+

958
957
see it in motion -> https://youtu.be/uVI_QOioER4
959
958
---
960
959
Fake Skin SSS & specular
961
-

962
-

960
+

961
+

963
962
964
963
BEFORE
965
-

964
+

966
965
AFTER
967
-

966
+

968
967
969
968
970
969
What is included in this simplified tutorial example toon-lit shader repository?
971
970
-------------------
972
971
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.
973
972
974
973
This example shader's default result(without editing material params) = the following picture
975
-

974
+

976
975
977
976
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.
978
977
@@ -1003,13 +1002,13 @@ but doing this will make the lighting slightly incorrect.
1003
1002
3. edit "Normals" to Calculate
1004
1003
4. edit "Smoothing Angle" to 180
1005
1004
1006
-

1005
+

1007
1006
before calculating smooth normal (print screen of the tutorial shader, not NiloToonURP)
1008
-

1007
+

1009
1008
after calculating smooth normal (print screen of the tutorial shader, not NiloToonURP)
1010
-

1009
+

1011
1010
1012
-
*NiloToonURP(full version) contains a few editor C# scripts, which can help the shader to produce correct lighting and perfect outline together automatically.
1011
+
*NiloToonURP(full version) contains many editor/runtime C# scripts, some of them are for producing correct lighting and perfect outline together automatically.
1013
1012
1014
1013
What is NOT included in this simplified tutorial shader?
1015
1014
-------------------
@@ -1048,10 +1047,9 @@ http://stereoarts.jp/
1048
1047
if you downloaded a .vrm file, use UniVRM to convert it to prefab directly inside Unity
1049
1048
https://github.com/vrm-c/UniVRM
1050
1049
1051
-
Editor environment requirement
1050
+
Editor version requirement
1052
1051
-----------------------
1053
-
- URP 12
1054
-
- Unity 2021.3
1052
+
- Unity 2022.3
1055
1053
1056
1054
---------------------------
1057
1055
Apply our shader to another model (2020-2 early version screenshots)
0 commit comments