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

335 行
7.2 KiB

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2155154
Material:
serializedVersion: 6
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: TextMeshPro/Sprite
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _ColorMask
second: 15
data:
first:
name: _UseUIAlphaClip
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _ClipRect
second: {r: -32767, g: -32767, b: 32767, a: 32767}
--- !u!21 &2168720
Material:
serializedVersion: 6
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: TextMeshPro/Sprite
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: fd09957580ac4326916010f1f260975b, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _ColorMask
second: 15
data:
first:
name: _UseUIAlphaClip
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _ClipRect
second: {r: -32767, g: -32767, b: 32767, a: 32767}
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 84a92b25f83d49b9bc132d206b370281, type: 3}
m_Name: DropCap Numbers
m_EditorClassIdentifier:
hashCode: 874831499
material: {fileID: 2168720}
materialHashCode: 0
spriteSheet: {fileID: 2800000, guid: fd09957580ac4326916010f1f260975b, type: 3}
spriteInfoList:
- id: 0
x: 0
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 03A5
hashCode: 1673815
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300000, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 1
x: 128
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 1
hashCode: 49
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300002, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 2
x: 256
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 2
hashCode: 50
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300004, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 3
x: 384
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 3
hashCode: 51
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300006, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 4
x: 0
y: 256
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 4
hashCode: 52
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300008, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 5
x: 128
y: 256
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 5
hashCode: 53
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300010, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 6
x: 256
y: 256
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 6
hashCode: 54
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300012, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 7
x: 384
y: 256
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 7
hashCode: 55
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300014, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 8
x: 0
y: 128
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 8
hashCode: 56
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300016, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 9
x: 128
y: 128
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 1
name: 9
hashCode: 57
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300018, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 10
x: 0
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 112.25
xAdvance: 128
scale: 2.20000005
name: 0-Large
hashCode: 1182309024
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300000, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 11
x: 128
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 47.5
xAdvance: 128
scale: 2.20000005
name: 1-Large
hashCode: 451176033
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300002, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 12
x: 256
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 47.5
xAdvance: 128
scale: 2.20000005
name: 2-Large
hashCode: -534322270
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300004, guid: fd09957580ac4326916010f1f260975b, type: 3}
- id: 13
x: 384
y: 384
width: 128
height: 128
xOffset: 2.9000001
yOffset: 47.5
xAdvance: 128
scale: 2.20000005
name: 3-Large
hashCode: -1265455261
unicode: 0
pivot: {x: -64, y: 64}
sprite: {fileID: 21300006, guid: fd09957580ac4326916010f1f260975b, type: 3}
fallbackSpriteAssets: []