本项目演示如何创建自己的顶点动画着色器。场景不使用任何纹理或动画资源,所有内容都使用Shader Graph进行着色和动画处理。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

605 行
21 KiB

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!181963792 &2655988077585873504
Preset:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Preset_SandCream
m_TargetType:
m_NativeTypeID: 21
m_ManagedTypePPtr: {fileID: 0}
m_ManagedTypeFallback:
m_Properties:
- target: {fileID: 0}
propertyPath: m_Name
value: Material_Sand
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Shader
value:
objectReference: {fileID: 4800000, guid: 0299cf39328d3e946b7ce3dd58d1994c, type: 3}
- target: {fileID: 0}
propertyPath: m_ShaderKeywords
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_LightmapFlags
value: 4
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_EnableInstancingVariants
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_DoubleSidedGI
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_CustomRenderQueue
value: -1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: stringTagMap.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: disabledShaderPasses.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.size
value: 10
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].first
value: _BumpMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[0].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].first
value: _DetailAlbedoMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[1].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].first
value: _DetailMask
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[2].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].first
value: _DetailNormalMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[3].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].first
value: _EmissionMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[4].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].first
value: _MainTex
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[5].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].first
value: _MetallicGlossMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[6].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].first
value: _OcclusionMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[7].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].first
value: _ParallaxMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[8].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].first
value: _SpecGlossMap
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].second.m_Texture
value:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].second.m_Scale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].second.m_Scale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].second.m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_TexEnvs.Array.data[9].second.m_Offset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.size
value: 23
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[0].first
value: Boolean_3F48562E
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[0].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[1].first
value: Vector1_94D5305
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[1].second
value: 3.31
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[2].first
value: Vector1_D6ACAC2D
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[2].second
value: 15.59
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[3].first
value: _AlphaClip
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[3].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[4].first
value: _Blend
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[4].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[5].first
value: _BumpScale
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[5].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[6].first
value: _Cull
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[6].second
value: 2
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[7].first
value: _Cutoff
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[7].second
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[8].first
value: _DetailNormalMapScale
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[8].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[9].first
value: _DstBlend
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[9].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[10].first
value: _GlossMapScale
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[10].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[11].first
value: _Glossiness
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[11].second
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[12].first
value: _GlossyReflections
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[12].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[13].first
value: _Metallic
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[13].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[14].first
value: _OcclusionStrength
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[14].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[15].first
value: _Parallax
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[15].second
value: 0.02
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[16].first
value: _SmoothnessTextureChannel
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[16].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[17].first
value: _SpecularHighlights
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[17].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[18].first
value: _SrcBlend
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[18].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[19].first
value: _Surface
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[19].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[20].first
value: _UVSec
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[20].second
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[21].first
value: _WorkflowMode
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[21].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[22].first
value: _ZWrite
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Floats.Array.data[22].second
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.size
value: 6
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[0].first
value: Color_B0488681
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[0].second.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[0].second.g
value: 0.98823535
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[0].second.b
value: 0.882353
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[0].second.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[1].first
value: Color_B49C5A4A
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[1].second.r
value: 0.8301887
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[1].second.g
value: 0.7232882
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[1].second.b
value: 0.5991456
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[1].second.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[2].first
value: Vector2_E6D20B08
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[2].second.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[2].second.g
value: 0.8
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[2].second.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[2].second.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[3].first
value: _Color
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[3].second.r
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[3].second.g
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[3].second.b
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[3].second.a
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[4].first
value: _EmissionColor
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[4].second.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[4].second.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[4].second.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[4].second.a
value: 1
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[5].first
value: _SpecColor
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[5].second.r
value: 0.19999996
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[5].second.g
value: 0.19999996
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[5].second.b
value: 0.19999996
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_SavedProperties.m_Colors.Array.data[5].second.a
value: 1
objectReference: {fileID: 0}