浏览代码

Simplify Toon_Fresnel shader - move Direct Specular to Lightning Model

/main
treivize 4 年前
当前提交
f1cf3605
共有 10 个文件被更改,包括 629 次插入396 次删除
  1. 36
      UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Blue.mat
  2. 36
      UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Brown.mat
  3. 9
      UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Green.mat
  4. 36
      UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Orange.mat
  5. 34
      UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Yellow.mat
  6. 8
      UOP1_Project/Assets/Shaders/SubGraphs/MainLight.shadersubgraph
  7. 254
      UOP1_Project/Assets/Shaders/SubGraphs/ToonLightingModel.shadersubgraph
  8. 188
      UOP1_Project/Assets/Shaders/SubGraphs/ToonShading.shadersubgraph
  9. 50
      UOP1_Project/Assets/Shaders/Toon.shadergraph
  10. 374
      UOP1_Project/Assets/Shaders/Toon_Fresnel.shadergraph

36
UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Blue.mat


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SlimeCritterBody_Blue
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 3ef05ec63152ae9488cbf74c84ddba20,
type: 3}
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
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_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Vector1_1C662FFD: 5
- Vector1_2118372C: 0.4
- Vector1_2CCC523D: 0.6
- Vector1_5580A2BB: 3
- Vector1_6B55B4E: 1.95
- Vector1_A4EAD20D: 0.05
- Vector1_E93D1B7E: 0.4
- Vector1_EA388E7D: 5
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1

- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _LightProbeContribution: 5
- _OutlineDepthSensitivity: 1
- _OutlineNormalsSensitivity: 1
- _OutlineThickness: 0.28
- _Smoothness: 0.5
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_4818C45D: {r: 0.35686275, g: 0.94117653, b: 0.854902, a: 1}
- Vector3_271172D9: {r: 1, g: 1, b: -1, a: 0}
- _MainColor: {r: 0.15307939, g: 0.5224987, b: 0.754717, a: 0}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 0.98039216}
- _Tiling: {r: 1, g: 1, b: 0, a: 0}

36
UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Brown.mat


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SlimeCritterBody_Brown
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 3ef05ec63152ae9488cbf74c84ddba20,
type: 3}
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
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_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Vector1_1C662FFD: 5
- Vector1_2118372C: 0.4
- Vector1_2CCC523D: 0.6
- Vector1_5580A2BB: 3
- Vector1_6B55B4E: 1.95
- Vector1_A4EAD20D: 0.05
- Vector1_E93D1B7E: 0.4
- Vector1_EA388E7D: 5
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1

- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _LightProbeContribution: 5
- _OutlineDepthSensitivity: 1
- _OutlineNormalsSensitivity: 1
- _OutlineThickness: 0.28
- _Smoothness: 0.5
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_4818C45D: {r: 0.6666667, g: 0.49411768, b: 0.427451, a: 0}
- Vector3_271172D9: {r: 1, g: 1, b: -1, a: 0}
- _MainColor: {r: 0.59607846, g: 0.3137255, b: 0.22352943, a: 0}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _Tiling: {r: 1, g: 1, b: 0, a: 0}

9
UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Green.mat


m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- Vector1_1C662FFD: 5
- Vector1_2118372C: 0.4
- Vector1_2CCC523D: 0.6
- Vector1_3DA29895: -1.2

- _OutlineThickness: 0.28
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _Smoothness: 0.76
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_4818C45D: {r: 0.3254717, g: 1, b: 0.41540888, a: 0}
- Color_4818C45D: {r: 0.35686275, g: 0.94117653, b: 0.64705884, a: 0}
- Color_5D090F08: {r: 0.5, g: 0.4254902, b: 0, a: 0}
- Color_D678A443: {r: 1, g: 0.75939256, b: 0, a: 0}
- Vector3_271172D9: {r: 1, g: 1, b: -1, a: 0}

- _MainColor: {r: 0.027411893, g: 0.5283019, b: 0.21232627, a: 0}
- _MainColor: {r: 0.22352943, g: 0.59607846, b: 0.3803922, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 0.98039216}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _Tiling: {r: 1, g: 1, b: 0, a: 0}
--- !u!114 &6014427166983149364
MonoBehaviour:

36
UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Orange.mat


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SlimeCritterBody_Orange
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 3ef05ec63152ae9488cbf74c84ddba20,
type: 3}
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
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_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Vector1_1C662FFD: 5
- Vector1_2118372C: 0.4
- Vector1_2CCC523D: 0.6
- Vector1_5580A2BB: 3
- Vector1_6B55B4E: 1.95
- Vector1_A4EAD20D: 0.05
- Vector1_E93D1B7E: 0.4
- Vector1_EA388E7D: 5
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1

- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _LightProbeContribution: 4
- _OutlineDepthSensitivity: 1
- _OutlineNormalsSensitivity: 1
- _OutlineThickness: 0.28
- _Smoothness: 0.5
- _Smoothness: 0.6
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_4818C45D: {r: 0.94117653, g: 0.35686275, b: 0.35686275, a: 0}
- Vector3_271172D9: {r: 1, g: 1, b: -1, a: 0}
- _MainColor: {r: 0.94117653, g: 0.7294118, b: 0.35686275, a: 0}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _Tiling: {r: 1, g: 1, b: 0, a: 0}

34
UOP1_Project/Assets/Art/Characters/SlimeCritter/SlimeCritterBody_Yellow.mat


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SlimeCritterBody_Yellow
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 3ef05ec63152ae9488cbf74c84ddba20,
type: 3}
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
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_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Vector1_1C662FFD: 5
- Vector1_2118372C: 0.6
- Vector1_2CCC523D: 0.6
- Vector1_5580A2BB: 3
- Vector1_6B55B4E: 1.95
- Vector1_A4EAD20D: 0.05
- Vector1_E93D1B7E: 0.4
- Vector1_EA388E7D: 5
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1

- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _LightProbeContribution: 4
- _OutlineDepthSensitivity: 1
- _OutlineNormalsSensitivity: 1
- _OutlineThickness: 0.28
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5

- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_4818C45D: {r: 0.9528302, g: 0.70994186, b: 0.28315237, a: 1}
- Vector3_271172D9: {r: 1, g: 1, b: -1, a: 0}
- _MainColor: {r: 1, g: 0.9292453, b: 0.5235849, a: 1}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _Tiling: {r: 1, g: 1, b: 0, a: 0}

8
UOP1_Project/Assets/Shaders/SubGraphs/MainLight.shadersubgraph


"typeInfo": {
"fullName": "UnityEditor.ShaderGraph.SubGraphOutputNode"
},
"JSONnodeData": "{\n \"m_GuidSerialized\": \"5c656eb4-be29-4ffb-9bd8-d3daf9f2227b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Out_Vector1 (1)\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 881.0000610351563,\n \"y\": -404.99993896484377,\n \"width\": 164.0,\n \"height\": 124.99999237060547\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"ShadowAttenuation\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"ShadowAttenuation\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"SelfShadowing\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"SelfShadowing\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 0,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n }\n}"
"JSONnodeData": "{\n \"m_GuidSerialized\": \"5c656eb4-be29-4ffb-9bd8-d3daf9f2227b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Out_Vector1 (1)\",\n \"m_NodeVersion\": 0,\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 876.9998779296875,\n \"y\": -406.99993896484377,\n \"width\": 164.0,\n \"height\": 124.99999237060547\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"ShadowAttenuation\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"ShadowAttenuation\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"SelfShadowing\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"SelfShadowing\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"Direction\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Direction\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_Precision\": 0,\n \"m_PreviewExpanded\": true,\n \"m_CustomColors\": {\n \"m_SerializableColors\": []\n }\n}"
},
{
"typeInfo": {

"fullName": "UnityEditor.Graphing.Edge"
},
"JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"61ebb6e3-3865-46c1-bdf4-9a4cf14b5b3e\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"7d4b79ef-628e-4d89-843a-78a61719da6f\"\n }\n}"
},
{
"typeInfo": {
"fullName": "UnityEditor.Graphing.Edge"
},
"JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"6bc213f3-e588-4474-a220-1134210fbbe4\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 5,\n \"m_NodeGUIDSerialized\": \"5c656eb4-be29-4ffb-9bd8-d3daf9f2227b\"\n }\n}"
},
{
"typeInfo": {

254
UOP1_Project/Assets/Shaders/SubGraphs/ToonLightingModel.shadersubgraph
文件差异内容过多而无法显示
查看文件

188
UOP1_Project/Assets/Shaders/SubGraphs/ToonShading.shadersubgraph
文件差异内容过多而无法显示
查看文件

50
UOP1_Project/Assets/Shaders/Toon.shadergraph
文件差异内容过多而无法显示
查看文件

374
UOP1_Project/Assets/Shaders/Toon_Fresnel.shadergraph
文件差异内容过多而无法显示
查看文件

正在加载...
取消
保存