浏览代码

Ground Shader WIP

Includes ground shader prototype with vertex color debug. Moves outline subgraph out of the main ToonShading subgraph. I have not included Noise Textures as I need to verify that the noise textures I used for testing are under an open-source license.
/devlogs-3-input
Dane Byrd 4 年前
当前提交
004c7bd1
共有 18 个文件被更改,包括 1693 次插入339 次删除
  1. 2
      UOP1_Project/Assets/Scenes/TestingGround_Small.unity.meta
  2. 2
      UOP1_Project/Assets/Settings/Graphics/ToonRendererData.asset
  3. 160
      UOP1_Project/Assets/Shaders/SubGraphs/ToonShading.shadersubgraph
  4. 112
      UOP1_Project/Assets/Shaders/Toon.shadergraph
  5. 88
      UOP1_Project/Assets/Shaders/Toon_DetailMaskTint.shadergraph
  6. 173
      UOP1_Project/Assets/Shaders/Toon_Dissolve.shadergraph
  7. 104
      UOP1_Project/Assets/Shaders/Toon_Fresnel.shadergraph
  8. 50
      UOP1_Project/Assets/Shaders/Toon_Wind.shadergraph
  9. 8
      UOP1_Project/Assets/Ground Shader Test.meta
  10. 809
      UOP1_Project/Assets/Shaders/SubGraphs/Ground.shadersubgraph
  11. 10
      UOP1_Project/Assets/Shaders/SubGraphs/Ground.shadersubgraph.meta
  12. 131
      UOP1_Project/Assets/Ground Shader Test/Ground Shader Test.mat
  13. 8
      UOP1_Project/Assets/Ground Shader Test/Ground Shader Test.mat.meta
  14. 7
      UOP1_Project/Assets/Ground Shader Test/Ground Shader.unity.meta
  15. 358
      UOP1_Project/Assets/Ground Shader Test/Toon_Ground.shadergraph
  16. 10
      UOP1_Project/Assets/Ground Shader Test/Toon_Ground.shadergraph.meta

2
UOP1_Project/Assets/Scenes/TestingGround_Small.unity.meta


fileFormatVersion: 2
guid: 806a53dce89301344b07cde6affac383
guid: fe821a79fea79a545baaad1391f5de4d
DefaultImporter:
externalObjects: {}
userData:

2
UOP1_Project/Assets/Settings/Graphics/ToonRendererData.asset


fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 823
m_Bits: 58167
m_TransparentLayerMask:
serializedVersion: 2
m_Bits: 807

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

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

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

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

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

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

8
UOP1_Project/Assets/Ground Shader Test.meta


fileFormatVersion: 2
guid: e9dc6ae6898c86440a94e94d65fb4b1e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

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

10
UOP1_Project/Assets/Shaders/SubGraphs/Ground.shadersubgraph.meta


fileFormatVersion: 2
guid: 66b2b2d0c74267b43b3b939acfbac94e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

131
UOP1_Project/Assets/Ground Shader Test/Ground Shader Test.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-2082913941326236597
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:
version: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Ground Shader Test
m_Shader: {fileID: -6465566751694194690, guid: 189926528b3c623439062b1257f63248,
type: 3}
m_ShaderKeywords: BOOLEAN_DEBUG_VERTEX_COLOR_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FourthTexture:
m_Texture: {fileID: 2800000, guid: 68f51f5df921dd948845b2144de45d09, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTexture:
m_Texture: {fileID: 2800000, guid: b9daf6ef801b41f47a13f9c8cd2ba971, type: 3}
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}
- _NoiseTexture:
m_Texture: {fileID: 2800000, guid: 96ab8aaf88568ee4794911ece12a8fdb, type: 3}
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}
- _SecondTexture:
m_Texture: {fileID: 2800000, guid: cc83e3fb0ff712f4aa2bca127f6def52, type: 3}
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}
- _ThirdTexture:
m_Texture: {fileID: 2800000, guid: ec2fb5adbeccb9b439efa9d7af165ef8, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ToonShading_4BDB5446_Texture2D75C45C06_1004932281:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ToonShading_6BF5835B_Texture2D75C45C06_1004932281:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ToonShading_CCE55C45_Texture2D75C45C06_1004932281:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- BOOLEAN_DEBUG_VERTEX_COLOR: 1
- DEBUG_VERTEX_COLOR: 0
- _AlphaClip: 0
- _BOOLEAN_DEBUG_VERTEX_COLOR: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _FourthTextureScale: 0.2
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _MainTextureScale: 0.2
- _Metallic: 0
- _NoiseScale: 0.2
- _OcclusionStrength: 1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SecondTextureScale: 0.2
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _ThirdTextureScale: 0.2
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_C05E8F5A: {r: 0, g: 0, b: 1, 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}

8
UOP1_Project/Assets/Ground Shader Test/Ground Shader Test.mat.meta


fileFormatVersion: 2
guid: 08ca143119b8a8b4a957957258bbaa68
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

7
UOP1_Project/Assets/Ground Shader Test/Ground Shader.unity.meta


fileFormatVersion: 2
guid: 4f3cfdfb6adf6b645acef3ab0c6e756a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

358
UOP1_Project/Assets/Ground Shader Test/Toon_Ground.shadergraph
文件差异内容过多而无法显示
查看文件

10
UOP1_Project/Assets/Ground Shader Test/Toon_Ground.shadergraph.meta


fileFormatVersion: 2
guid: 189926528b3c623439062b1257f63248
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData: '{"shaderPath":"UOP1/Toon_Ground","attributes":[{"isBaseTexture":true,"channel":4,"index":0,"range":{"x":0.0,"y":1.0},"propertyTarget":"_MainTexture","mask":0},{"isBaseTexture":false,"channel":4,"index":1,"range":{"x":0.0,"y":1.0},"propertyTarget":"_SecondTexture","mask":0},{"isBaseTexture":false,"channel":4,"index":2,"range":{"x":0.0,"y":1.0},"propertyTarget":"_ThirdTexture","mask":0},{"isBaseTexture":false,"channel":4,"index":0,"range":{"x":0.0,"y":1.0},"propertyTarget":"_FourthTexture","mask":0}]}'
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存