Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 4a24749

Browse files
committed
Fixup sample rendering, add materials
1 parent 411a729 commit 4a24749

13 files changed

+376
-8
lines changed

Samples/GameEvents/Materials.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &-8071150190349356560
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 11
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
13+
m_Name:
14+
m_EditorClassIdentifier:
15+
version: 1
16+
--- !u!21 &2100000
17+
Material:
18+
serializedVersion: 6
19+
m_ObjectHideFlags: 0
20+
m_CorrespondingSourceObject: {fileID: 0}
21+
m_PrefabInstance: {fileID: 0}
22+
m_PrefabAsset: {fileID: 0}
23+
m_Name: Target
24+
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
25+
m_ShaderKeywords:
26+
m_LightmapFlags: 4
27+
m_EnableInstancingVariants: 0
28+
m_DoubleSidedGI: 0
29+
m_CustomRenderQueue: 2050
30+
stringTagMap:
31+
RenderType: Opaque
32+
disabledShaderPasses: []
33+
m_SavedProperties:
34+
serializedVersion: 3
35+
m_TexEnvs:
36+
- _BaseMap:
37+
m_Texture: {fileID: 0}
38+
m_Scale: {x: 1, y: 1}
39+
m_Offset: {x: 0, y: 0}
40+
- _BumpMap:
41+
m_Texture: {fileID: 0}
42+
m_Scale: {x: 1, y: 1}
43+
m_Offset: {x: 0, y: 0}
44+
- _DetailAlbedoMap:
45+
m_Texture: {fileID: 0}
46+
m_Scale: {x: 1, y: 1}
47+
m_Offset: {x: 0, y: 0}
48+
- _DetailMask:
49+
m_Texture: {fileID: 0}
50+
m_Scale: {x: 1, y: 1}
51+
m_Offset: {x: 0, y: 0}
52+
- _DetailNormalMap:
53+
m_Texture: {fileID: 0}
54+
m_Scale: {x: 1, y: 1}
55+
m_Offset: {x: 0, y: 0}
56+
- _EmissionMap:
57+
m_Texture: {fileID: 0}
58+
m_Scale: {x: 1, y: 1}
59+
m_Offset: {x: 0, y: 0}
60+
- _MainTex:
61+
m_Texture: {fileID: 0}
62+
m_Scale: {x: 1, y: 1}
63+
m_Offset: {x: 0, y: 0}
64+
- _MetallicGlossMap:
65+
m_Texture: {fileID: 0}
66+
m_Scale: {x: 1, y: 1}
67+
m_Offset: {x: 0, y: 0}
68+
- _OcclusionMap:
69+
m_Texture: {fileID: 0}
70+
m_Scale: {x: 1, y: 1}
71+
m_Offset: {x: 0, y: 0}
72+
- _ParallaxMap:
73+
m_Texture: {fileID: 0}
74+
m_Scale: {x: 1, y: 1}
75+
m_Offset: {x: 0, y: 0}
76+
- _SpecGlossMap:
77+
m_Texture: {fileID: 0}
78+
m_Scale: {x: 1, y: 1}
79+
m_Offset: {x: 0, y: 0}
80+
m_Floats:
81+
- _AlphaClip: 0
82+
- _Blend: 0
83+
- _BumpScale: 1
84+
- _Cull: 2
85+
- _Cutoff: 0.5
86+
- _DetailNormalMapScale: 1
87+
- _DstBlend: 0
88+
- _EnvironmentReflections: 1
89+
- _GlossMapScale: 1
90+
- _Glossiness: 0.5
91+
- _GlossyReflections: 1
92+
- _Metallic: 0
93+
- _Mode: 0
94+
- _OcclusionStrength: 1
95+
- _Parallax: 0.02
96+
- _QueueOffset: 0
97+
- _ReceiveShadows: 1
98+
- _Smoothness: 0.5
99+
- _SmoothnessTextureChannel: 0
100+
- _SpecularHighlights: 1
101+
- _SrcBlend: 1
102+
- _Surface: 0
103+
- _UVSec: 0
104+
- _WorkflowMode: 1
105+
- _ZWrite: 1
106+
m_Colors:
107+
- _BaseColor: {r: 0.9716981, g: 0.5179334, b: 0.5179334, a: 1}
108+
- _Color: {r: 0.9716981, g: 0.5179334, b: 0.5179334, a: 1}
109+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
110+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}

Samples/GameEvents/Materials/Target.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: Wall
11+
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
12+
m_ShaderKeywords:
13+
m_LightmapFlags: 4
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: 2050
17+
stringTagMap:
18+
RenderType: Opaque
19+
disabledShaderPasses: []
20+
m_SavedProperties:
21+
serializedVersion: 3
22+
m_TexEnvs:
23+
- _BaseMap:
24+
m_Texture: {fileID: 0}
25+
m_Scale: {x: 1, y: 1}
26+
m_Offset: {x: 0, y: 0}
27+
- _BumpMap:
28+
m_Texture: {fileID: 0}
29+
m_Scale: {x: 1, y: 1}
30+
m_Offset: {x: 0, y: 0}
31+
- _DetailAlbedoMap:
32+
m_Texture: {fileID: 0}
33+
m_Scale: {x: 1, y: 1}
34+
m_Offset: {x: 0, y: 0}
35+
- _DetailMask:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _DetailNormalMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _EmissionMap:
44+
m_Texture: {fileID: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _MainTex:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _MetallicGlossMap:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _OcclusionMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _ParallaxMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _SpecGlossMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
m_Floats:
68+
- _AlphaClip: 0
69+
- _Blend: 0
70+
- _BumpScale: 1
71+
- _Cull: 2
72+
- _Cutoff: 0.5
73+
- _DetailNormalMapScale: 1
74+
- _DstBlend: 0
75+
- _EnvironmentReflections: 1
76+
- _GlossMapScale: 1
77+
- _Glossiness: 0.5
78+
- _GlossyReflections: 1
79+
- _Metallic: 0
80+
- _Mode: 0
81+
- _OcclusionStrength: 1
82+
- _Parallax: 0.02
83+
- _QueueOffset: 0
84+
- _ReceiveShadows: 1
85+
- _Smoothness: 0.5
86+
- _SmoothnessTextureChannel: 0
87+
- _SpecularHighlights: 1
88+
- _SrcBlend: 1
89+
- _Surface: 0
90+
- _UVSec: 0
91+
- _WorkflowMode: 1
92+
- _ZWrite: 1
93+
m_Colors:
94+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
95+
- _Color: {r: 1, g: 1, b: 1, a: 1}
96+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
97+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
98+
--- !u!114 &2019156213369660498
99+
MonoBehaviour:
100+
m_ObjectHideFlags: 11
101+
m_CorrespondingSourceObject: {fileID: 0}
102+
m_PrefabInstance: {fileID: 0}
103+
m_PrefabAsset: {fileID: 0}
104+
m_GameObject: {fileID: 0}
105+
m_Enabled: 1
106+
m_EditorHideFlags: 0
107+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
108+
m_Name:
109+
m_EditorClassIdentifier:
110+
version: 1

Samples/GameEvents/Materials/Wall.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples/GameEvents/Prefabs/Target.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GameObject:
1010
m_Component:
1111
- component: {fileID: 7326214114355414922}
1212
m_Layer: 0
13-
m_Name: Enemy
13+
m_Name: Target
1414
m_TagString: Untagged
1515
m_Icon: {fileID: 0}
1616
m_NavMeshLayer: 0
@@ -90,7 +90,7 @@ MeshRenderer:
9090
m_RenderingLayerMask: 1
9191
m_RendererPriority: 0
9292
m_Materials:
93-
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
93+
- {fileID: 2100000, guid: 275f385ed1d71b242ac4af4042c4974e, type: 2}
9494
m_StaticBatchInfo:
9595
firstSubMesh: 0
9696
subMeshCount: 0

Samples/GameEvents/Scenes/GameEvents.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ MeshRenderer:
401401
m_RenderingLayerMask: 1
402402
m_RendererPriority: 0
403403
m_Materials:
404-
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
404+
- {fileID: 2100000, guid: 6721031f739529e4d9bd149a7cfc0d80, type: 2}
405405
m_StaticBatchInfo:
406406
firstSubMesh: 0
407407
subMeshCount: 0

Samples/Settings.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13+
m_Name: UniversalRenderPipelineAsset
14+
m_EditorClassIdentifier:
15+
k_AssetVersion: 5
16+
k_AssetPreviousVersion: 5
17+
m_RendererType: 1
18+
m_RendererData: {fileID: 0}
19+
m_RendererDataList:
20+
- {fileID: 11400000, guid: 456bfeb11c07b004a81755a6d5eb9b33, type: 2}
21+
m_DefaultRendererIndex: 0
22+
m_RequireDepthTexture: 0
23+
m_RequireOpaqueTexture: 0
24+
m_OpaqueDownsampling: 1
25+
m_SupportsTerrainHoles: 1
26+
m_SupportsHDR: 0
27+
m_MSAA: 1
28+
m_RenderScale: 1
29+
m_MainLightRenderingMode: 1
30+
m_MainLightShadowsSupported: 1
31+
m_MainLightShadowmapResolution: 2048
32+
m_AdditionalLightsRenderingMode: 1
33+
m_AdditionalLightsPerObjectLimit: 4
34+
m_AdditionalLightShadowsSupported: 0
35+
m_AdditionalLightsShadowmapResolution: 512
36+
m_ShadowDistance: 50
37+
m_ShadowCascades: 0
38+
m_Cascade2Split: 0.25
39+
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
40+
m_ShadowDepthBias: 1
41+
m_ShadowNormalBias: 1
42+
m_SoftShadowsSupported: 0
43+
m_UseSRPBatcher: 1
44+
m_SupportsDynamicBatching: 0
45+
m_MixedLightingSupported: 1
46+
m_DebugLevel: 0
47+
m_PostProcessingFeatureSet: 0
48+
m_ColorGradingMode: 0
49+
m_ColorGradingLutSize: 32
50+
m_ShadowType: 1
51+
m_LocalShadowsSupported: 0
52+
m_LocalShadowsAtlasResolution: 256
53+
m_MaxPixelLights: 0
54+
m_ShadowAtlasResolution: 256
55+
m_ShaderVariantLogLevel: 0

Samples/Settings/UniversalRenderPipelineAsset.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)