Skip to content
Draft

test #657

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
291 commits
Select commit Hold shift + click to select a range
2e58751
Draw outline controls
sindharta Nov 17, 2025
74525d8
foldout
sindharta Nov 17, 2025
5445db5
save material
sindharta Nov 17, 2025
20aea1c
cleanup
sindharta Nov 17, 2025
6f9c18a
add background
sindharta Nov 17, 2025
24ca563
DrawNormalMap
sindharta Nov 17, 2025
bebeba6
BumpScale
sindharta Nov 17, 2025
b511ad8
refactor bg rect
sindharta Nov 17, 2025
c232da1
specular
sindharta Nov 17, 2025
45fe22e
save scene
sindharta Nov 19, 2025
be7a9e1
minor
sindharta Nov 19, 2025
b1f215f
3D as 2D materials
sindharta Nov 19, 2025
e26c49e
add ToonEditorGUIUtility
sindharta Nov 19, 2025
d7cd68f
* make sure all editor funcitons return true if changed, false otherwise
sindharta Nov 19, 2025
95c74a8
fix errors when apply toggle are checked
sindharta Nov 19, 2025
f5c0077
minor
sindharta Nov 19, 2025
1a92ca0
rename variables
sindharta Nov 19, 2025
84706a6
rename
sindharta Nov 19, 2025
e81013d
support editing multiple materials
sindharta Nov 19, 2025
ff5665a
invert if
sindharta Nov 19, 2025
0eda324
use MaterialEditor.FloatProperty
sindharta Nov 19, 2025
556f842
Colorfield
sindharta Nov 19, 2025
9964017
turn all to static
sindharta Nov 19, 2025
4dfccba
refresh foldouts for outline
sindharta Nov 19, 2025
758b7b6
add commented out outline code for vertex
sindharta Nov 19, 2025
d22ce3b
rename vars, etc
sindharta Nov 19, 2025
86768d1
make outline appear
sindharta Nov 19, 2025
4f4aa45
add more functions
sindharta Nov 19, 2025
1b3276f
start outputing fragment color for outline
sindharta Nov 19, 2025
48cb882
Can sample shapeLight in the outline pass
sindharta Nov 19, 2025
e6d9641
optimize
sindharta Nov 19, 2025
1f6ef57
blend baseColor and lightColor to outline
sindharta Nov 19, 2025
b28ec33
use range for blending outline
sindharta Nov 19, 2025
967b371
remove unused functions
sindharta Nov 19, 2025
6f59392
default normalmap to true
sindharta Nov 19, 2025
227d0fd
pass TBN matrix
sindharta Nov 19, 2025
2631ced
update ToonEditorGUIUtility
sindharta Nov 19, 2025
0004a54
Pass Directional Light instead of Specular
sindharta Nov 19, 2025
2cce527
refresh foldout for directional light
sindharta Nov 19, 2025
537ac49
move directional light constants
sindharta Nov 19, 2025
050e874
add ToonDirectionalLightController
sindharta Nov 19, 2025
7d00cd2
show the results of directional light calculation
sindharta Nov 19, 2025
d330d34
fix parameter passing (tangent)
sindharta Nov 19, 2025
d3f87da
use range property
sindharta Nov 19, 2025
c67fd8a
combine 2d light with directional light
sindharta Nov 19, 2025
944e57b
save materials
sindharta Nov 19, 2025
7d10b90
save test scene
sindharta Nov 19, 2025
c5bf7d8
Use ObjectTransform.hlsl
sindharta Nov 23, 2025
12452c0
pragma
sindharta Nov 23, 2025
d13166d
cleanup
sindharta Nov 23, 2025
d753f17
Multiply
sindharta Nov 23, 2025
f335001
rename constants
sindharta Nov 23, 2025
c97a0cb
rename to 2DLightStrength
sindharta Nov 23, 2025
da8275d
Disable DirectionalGroup GUI elements if we are not using it
sindharta Nov 23, 2025
1645e19
clean up unused code
sindharta Nov 23, 2025
2de4090
rename shading start and feather vars
sindharta Nov 23, 2025
c084790
add Shading GUI
sindharta Nov 23, 2025
b3232a8
update materials
sindharta Nov 23, 2025
cf85395
updater shading va;lues
sindharta Nov 23, 2025
b94853d
update label
sindharta Nov 23, 2025
957f242
ThreeColorsLinearShading
sindharta Nov 23, 2025
9c3fe6a
use BaseColor
sindharta Nov 23, 2025
30645b4
update main material
sindharta Nov 23, 2025
662c4ad
remove unused code
sindharta Nov 24, 2025
f2d4019
invert the light direction
sindharta Nov 24, 2025
6178ac4
Make lighting settings in one place
sindharta Nov 24, 2025
9113823
rename diffuse and specular vars
sindharta Nov 24, 2025
8fd8c00
Show highlight properties in the GUI
sindharta Nov 24, 2025
839746d
add CameraViewController
sindharta Nov 24, 2025
8f982eb
Revert "add CameraViewController"
sindharta Nov 24, 2025
e58a3c5
pass positionWS to the fragment shader
sindharta Nov 24, 2025
1fb0653
GUI for viewPos
sindharta Nov 24, 2025
2303445
Reapply "add CameraViewController"
sindharta Nov 24, 2025
9ee18eb
cleanup highlight
sindharta Nov 24, 2025
e2fb542
Consider custom directional light inside outline
sindharta Nov 24, 2025
6a16206
chnage order
sindharta Nov 24, 2025
f9f3c4d
fix compile error
sindharta Nov 24, 2025
35cc2aa
declare widthMap
sindharta Nov 24, 2025
ff7e80a
use SAMPLE_TEXTURE2D_LOD
sindharta Nov 24, 2025
32efb6d
use UnpackNormal
sindharta Nov 24, 2025
d21c299
rename outline normalmap
sindharta Nov 24, 2025
80eb269
fix tooltip
sindharta Nov 24, 2025
e40c4fe
cleanup position scaling mode
sindharta Nov 24, 2025
6e0c7c6
cleanup
sindharta Nov 24, 2025
c3ec520
cleanup
sindharta Nov 24, 2025
a09aa62
cleanup
sindharta Nov 24, 2025
4453769
change keyword name
sindharta Nov 24, 2025
a532e3b
cleanup clipping
sindharta Nov 24, 2025
e5edc64
save 2d materials
sindharta Nov 24, 2025
f97c2a6
remove clipping
sindharta Nov 24, 2025
6e66373
rename to highlight size
sindharta Nov 24, 2025
aa2dbff
save materials
sindharta Nov 24, 2025
1a6eab7
adjust the shading settings
sindharta Nov 24, 2025
cf0c034
update label
sindharta Nov 24, 2025
8511f86
add prefabs
sindharta Nov 24, 2025
ce45bed
rename shader
sindharta Nov 26, 2025
48a3888
use all shape lights
sindharta Nov 26, 2025
ef8db16
Remove unused code
sindharta Nov 26, 2025
c032979
rename
sindharta Nov 26, 2025
602d981
_HDREmulationScale
sindharta Nov 26, 2025
bd873d7
HDREmulationScale for outline
sindharta Nov 26, 2025
82e7747
add normal textures
sindharta Nov 26, 2025
ada15d9
delete already merged files
sindharta Dec 3, 2025
fefbd24
remove script
sindharta Dec 3, 2025
8bd6f53
add 2d
sindharta Oct 17, 2025
7873e77
save scene
sindharta Oct 17, 2025
b78a4a4
save
sindharta Oct 17, 2025
c93fcf3
save
sindharta Oct 17, 2025
215f42f
setup Toon
sindharta Oct 17, 2025
372185d
comment
sindharta Oct 17, 2025
3212056
1st
sindharta Oct 17, 2025
72e0ae0
add the default shader
sindharta Oct 17, 2025
820fa30
save scene
sindharta Oct 17, 2025
ecd8e69
save mat
sindharta Oct 17, 2025
51ca307
works. needs cleanup
sindharta Oct 21, 2025
83a5bc0
Cleanup
sindharta Oct 22, 2025
27a1d5f
remove unused RT
sindharta Oct 22, 2025
66e8151
rename 2D Renderer
sindharta Oct 22, 2025
8bced6f
save scene
sindharta Oct 22, 2025
64e3417
keep only light_0 in the toon2d shader
sindharta Oct 29, 2025
717b4d6
Revert "keep only light_0 in the toon2d shader"
sindharta Oct 29, 2025
db47a76
remove light 1,2,3
sindharta Oct 29, 2025
bed3a5c
base color
sindharta Oct 29, 2025
c7b2c0a
all colors
sindharta Oct 29, 2025
65fa003
reformat code
sindharta Oct 29, 2025
12d0f14
cleanup
sindharta Oct 29, 2025
6baf70a
3 colors
sindharta Oct 29, 2025
89f22ee
update material
sindharta Oct 29, 2025
2d63abf
update scene
sindharta Oct 30, 2025
a9e3e31
save scene
sindharta Nov 7, 2025
41b1e1e
two passes
sindharta Nov 7, 2025
5bbec86
update toon shader
sindharta Nov 7, 2025
d69a736
add GUI
sindharta Nov 14, 2025
7bf84da
refactor GUI
sindharta Nov 14, 2025
1952e13
clean up code
sindharta Nov 14, 2025
64f709e
separate classes
sindharta Nov 14, 2025
1e70446
add code to enable/disable outline
sindharta Nov 14, 2025
cc523c7
update materials
sindharta Nov 14, 2025
a2406e8
add scene
sindharta Nov 14, 2025
5080204
update scene
sindharta Nov 14, 2025
fcf61fb
add EnumUtility
sindharta Nov 17, 2025
897917a
move and improve EnumEtility
sindharta Nov 17, 2025
e8b4b20
add static helper functions
sindharta Nov 17, 2025
dfa2c77
register uiElements
sindharta Nov 17, 2025
4d3f14b
minor
sindharta Nov 17, 2025
22b338e
Draw outline controls
sindharta Nov 17, 2025
ca1e434
foldout
sindharta Nov 17, 2025
1bdb7fe
save material
sindharta Nov 17, 2025
820d3d7
cleanup
sindharta Nov 17, 2025
2df99a6
add background
sindharta Nov 17, 2025
c54b03b
DrawNormalMap
sindharta Nov 17, 2025
ca09349
BumpScale
sindharta Nov 17, 2025
de9920d
refactor bg rect
sindharta Nov 17, 2025
cedf341
specular
sindharta Nov 17, 2025
36525a9
save scene
sindharta Nov 19, 2025
e285a71
minor
sindharta Nov 19, 2025
360d09d
3D as 2D materials
sindharta Nov 19, 2025
8f7c04a
add ToonEditorGUIUtility
sindharta Nov 19, 2025
d842796
* make sure all editor funcitons return true if changed, false otherwise
sindharta Nov 19, 2025
c28089f
fix errors when apply toggle are checked
sindharta Nov 19, 2025
f65d216
minor
sindharta Nov 19, 2025
92a8147
rename variables
sindharta Nov 19, 2025
3c35073
rename
sindharta Nov 19, 2025
9fca0f0
support editing multiple materials
sindharta Nov 19, 2025
15968d7
invert if
sindharta Nov 19, 2025
d174ee1
use MaterialEditor.FloatProperty
sindharta Nov 19, 2025
408fe9f
Colorfield
sindharta Nov 19, 2025
ac77038
turn all to static
sindharta Nov 19, 2025
6a53064
refresh foldouts for outline
sindharta Nov 19, 2025
55cea7d
add commented out outline code for vertex
sindharta Nov 19, 2025
9b80fe0
rename vars, etc
sindharta Nov 19, 2025
641ae81
make outline appear
sindharta Nov 19, 2025
93f96ac
add more functions
sindharta Nov 19, 2025
b71d595
start outputing fragment color for outline
sindharta Nov 19, 2025
eb35960
Can sample shapeLight in the outline pass
sindharta Nov 19, 2025
876fedf
optimize
sindharta Nov 19, 2025
19c43d7
blend baseColor and lightColor to outline
sindharta Nov 19, 2025
de147f8
use range for blending outline
sindharta Nov 19, 2025
d322a3c
remove unused functions
sindharta Nov 19, 2025
a2d0f67
default normalmap to true
sindharta Nov 19, 2025
1ff4421
pass TBN matrix
sindharta Nov 19, 2025
489693a
update ToonEditorGUIUtility
sindharta Nov 19, 2025
614f7d6
Pass Directional Light instead of Specular
sindharta Nov 19, 2025
8dbda03
refresh foldout for directional light
sindharta Nov 19, 2025
7139f78
move directional light constants
sindharta Nov 19, 2025
56d54a1
add ToonDirectionalLightController
sindharta Nov 19, 2025
cb889d6
show the results of directional light calculation
sindharta Nov 19, 2025
21a60f1
fix parameter passing (tangent)
sindharta Nov 19, 2025
35d5ad6
use range property
sindharta Nov 19, 2025
bcba6ce
combine 2d light with directional light
sindharta Nov 19, 2025
0bed16d
save materials
sindharta Nov 19, 2025
6bec658
save test scene
sindharta Nov 19, 2025
b2471da
Use ObjectTransform.hlsl
sindharta Nov 23, 2025
30f7a92
pragma
sindharta Nov 23, 2025
b04cc89
cleanup
sindharta Nov 23, 2025
a657135
Multiply
sindharta Nov 23, 2025
0bab5d3
rename constants
sindharta Nov 23, 2025
3fc0987
rename to 2DLightStrength
sindharta Nov 23, 2025
8f38768
Disable DirectionalGroup GUI elements if we are not using it
sindharta Nov 23, 2025
e32428f
clean up unused code
sindharta Nov 23, 2025
1838982
rename shading start and feather vars
sindharta Nov 23, 2025
d42429a
add Shading GUI
sindharta Nov 23, 2025
8e0f021
update materials
sindharta Nov 23, 2025
a0e67d2
updater shading va;lues
sindharta Nov 23, 2025
de32beb
update label
sindharta Nov 23, 2025
7905761
ThreeColorsLinearShading
sindharta Nov 23, 2025
c75b9e8
use BaseColor
sindharta Nov 23, 2025
bcca3f6
update main material
sindharta Nov 23, 2025
9a205a2
remove unused code
sindharta Nov 24, 2025
67a3189
invert the light direction
sindharta Nov 24, 2025
a4881f0
Make lighting settings in one place
sindharta Nov 24, 2025
7b8d34e
rename diffuse and specular vars
sindharta Nov 24, 2025
95bc522
Show highlight properties in the GUI
sindharta Nov 24, 2025
4b1911e
add CameraViewController
sindharta Nov 24, 2025
93e20bb
Revert "add CameraViewController"
sindharta Nov 24, 2025
a1f87bd
pass positionWS to the fragment shader
sindharta Nov 24, 2025
37bb31e
GUI for viewPos
sindharta Nov 24, 2025
b83b012
Reapply "add CameraViewController"
sindharta Nov 24, 2025
5da95a2
cleanup highlight
sindharta Nov 24, 2025
b1325f4
Consider custom directional light inside outline
sindharta Nov 24, 2025
ea0794e
chnage order
sindharta Nov 24, 2025
440224c
fix compile error
sindharta Nov 24, 2025
f752d96
declare widthMap
sindharta Nov 24, 2025
8891478
use SAMPLE_TEXTURE2D_LOD
sindharta Nov 24, 2025
50dfa7c
use UnpackNormal
sindharta Nov 24, 2025
7751268
rename outline normalmap
sindharta Nov 24, 2025
bd6b9bb
fix tooltip
sindharta Nov 24, 2025
07ba718
cleanup position scaling mode
sindharta Nov 24, 2025
1fd4d50
cleanup
sindharta Nov 24, 2025
271867d
cleanup
sindharta Nov 24, 2025
55e3738
cleanup
sindharta Nov 24, 2025
1cee0ea
change keyword name
sindharta Nov 24, 2025
188a983
cleanup clipping
sindharta Nov 24, 2025
174d40f
save 2d materials
sindharta Nov 24, 2025
7f78eeb
remove clipping
sindharta Nov 24, 2025
2ef5072
rename to highlight size
sindharta Nov 24, 2025
6283a39
save materials
sindharta Nov 24, 2025
69d5cca
adjust the shading settings
sindharta Nov 24, 2025
cc1ef04
update label
sindharta Nov 24, 2025
94ce187
add prefabs
sindharta Nov 24, 2025
908e2f6
rename shader
sindharta Nov 26, 2025
60ebf89
use all shape lights
sindharta Nov 26, 2025
2906e7c
Remove unused code
sindharta Nov 26, 2025
7b83be5
rename
sindharta Nov 26, 2025
1db3bd3
_HDREmulationScale
sindharta Nov 26, 2025
0f28590
HDREmulationScale for outline
sindharta Nov 26, 2025
4fc22ba
add normal textures
sindharta Nov 26, 2025
ea13c1c
delete already merged files
sindharta Dec 3, 2025
c09b0e4
remove script
sindharta Dec 3, 2025
30ae963
Merge branch 'add-2d' of github.com:Unity-Technologies/com.unity.toon…
sindharta Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 168 additions & 0 deletions Toonshader_ProjectURP/Assets/Materials/SphereAs2D.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SphereAs2D
m_Shader: {fileID: 4800000, guid: 60d646244f75ab84f8eb12819a6d87ff, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _1st_ShadeMap:
m_Texture: {fileID: 2800000, guid: cec083feb1104e9bb3e282339acfe384, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _2nd_ShadeMap:
m_Texture: {fileID: 2800000, guid: cec083feb1104e9bb3e282339acfe384, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 682e7dad2cf2429e8441474769ab30a7, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints:
- _Use_1stAs2nd: 0
- _Use_BaseAs1st: 0
m_Floats:
- _1st2nd_Shades_Feather: 0.0001
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _BaseColor_Step: 0.161
- _BaseShade_Feather: 0.0001
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Is_Filter_LightColor: 1
- _Is_LightColor_1st_Shade: 1
- _Is_LightColor_Base: 1
- _Metallic: 0
- _OcclusionStrength: 1
- _OutlineExtrusion: 0.02
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _ShadeColor_Step: 0.256
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _Unlit_Intensity: 0
- _Use_1stAs2nd: 0
- _Use_BaseAs1st: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _1st_ShadeColor: {r: 0.8490566, g: 0.120149404, b: 0.120149404, a: 1}
- _2nd_ShadeColor: {r: 0, g: 0, b: 0, a: 1}
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _White: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &5791580664690647399
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
8 changes: 8 additions & 0 deletions Toonshader_ProjectURP/Assets/Materials/SphereAs2D.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

190 changes: 190 additions & 0 deletions Toonshader_ProjectURP/Assets/Materials/Toon2D.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Toon2D
m_Shader: {fileID: 4800000, guid: 60d646244f75ab84f8eb12819a6d87ff, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _OUTLINE_NML
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
- SRPDEFAULTUNLIT
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _1st_ShadeMap:
m_Texture: {fileID: 2800000, guid: cec083feb1104e9bb3e282339acfe384, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _2nd_ShadeMap:
m_Texture: {fileID: 2800000, guid: cec083feb1104e9bb3e282339acfe384, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 682e7dad2cf2429e8441474769ab30a7, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineWidthMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Outline_CustomNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints:
- _OutlineMode: 0
- _Outline_BlendBaseColor: 0
- _Outline_UseCustomNormalMap: 0
- _Use_1stAs2nd: 0
- _Use_BaseAs1st: 0
m_Floats:
- _1st2nd_Shades_Feather: 0.0001
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _BaseColor_Step: 0.161
- _BaseShade_Feather: 0.0001
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Is_Filter_LightColor: 1
- _Is_LightColor_1st_Shade: 1
- _Is_LightColor_Base: 1
- _Metallic: 0
- _OcclusionStrength: 1
- _OutlineExtrusion: 0.02
- _OutlineFar: 100
- _OutlineNear: 0.5
- _OutlineOffsetZ: 0
- _OutlineWidth: 0
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _ShadeColor_Step: 0.256
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _Unlit_Intensity: 0
- _Use_1stAs2nd: 0
- _Use_BaseAs1st: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _1st_ShadeColor: {r: 0.8490566, g: 0.120149404, b: 0.120149404, a: 1}
- _2nd_ShadeColor: {r: 0, g: 0, b: 0, a: 1}
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _White: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &5791580664690647399
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
8 changes: 8 additions & 0 deletions Toonshader_ProjectURP/Assets/Materials/Toon2D.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Toonshader_ProjectURP/Assets/Materials/UnityChan_3Das2D.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading