Skip to content

Commit 88dd951

Browse files
committed
Change remove skybox and tweak lighting and shadows
1 parent ad7b871 commit 88dd951

File tree

3 files changed

+172
-87
lines changed

3 files changed

+172
-87
lines changed

Assets/Materials/Ground.mat

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &-1457071237182138477
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: 3
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: Ground
24+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
25+
m_ShaderKeywords: _GLOSSINESS_FROM_BASE_ALPHA _SPECULARHIGHLIGHTS_OFF _SPECULAR_COLOR
26+
m_LightmapFlags: 4
27+
m_EnableInstancingVariants: 1
28+
m_DoubleSidedGI: 0
29+
m_CustomRenderQueue: -1
30+
stringTagMap: {}
31+
disabledShaderPasses: []
32+
m_SavedProperties:
33+
serializedVersion: 3
34+
m_TexEnvs:
35+
- _BaseMap:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _BumpMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _DetailAlbedoMap:
44+
m_Texture: {fileID: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _DetailMask:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _DetailNormalMap:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _EmissionMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _MainTex:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _MetallicGlossMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
- _OcclusionMap:
68+
m_Texture: {fileID: 0}
69+
m_Scale: {x: 1, y: 1}
70+
m_Offset: {x: 0, y: 0}
71+
- _ParallaxMap:
72+
m_Texture: {fileID: 0}
73+
m_Scale: {x: 1, y: 1}
74+
m_Offset: {x: 0, y: 0}
75+
- _SpecGlossMap:
76+
m_Texture: {fileID: 0}
77+
m_Scale: {x: 1, y: 1}
78+
m_Offset: {x: 0, y: 0}
79+
- unity_Lightmaps:
80+
m_Texture: {fileID: 0}
81+
m_Scale: {x: 1, y: 1}
82+
m_Offset: {x: 0, y: 0}
83+
- unity_LightmapsInd:
84+
m_Texture: {fileID: 0}
85+
m_Scale: {x: 1, y: 1}
86+
m_Offset: {x: 0, y: 0}
87+
- unity_ShadowMasks:
88+
m_Texture: {fileID: 0}
89+
m_Scale: {x: 1, y: 1}
90+
m_Offset: {x: 0, y: 0}
91+
m_Floats:
92+
- _AlphaClip: 0
93+
- _Blend: 0
94+
- _BumpScale: 1
95+
- _Cull: 2
96+
- _Cutoff: 0.5
97+
- _DetailNormalMapScale: 1
98+
- _DstBlend: 0
99+
- _GlossMapScale: 1
100+
- _Glossiness: 0
101+
- _GlossinessSource: 0
102+
- _GlossyReflections: 1
103+
- _Metallic: 0
104+
- _Mode: 0
105+
- _OcclusionStrength: 1
106+
- _Parallax: 0.02
107+
- _QueueOffset: 0
108+
- _ReceiveShadows: 1
109+
- _Shininess: 0
110+
- _Smoothness: 0
111+
- _SmoothnessSource: 1
112+
- _SmoothnessTextureChannel: 0
113+
- _SpecSource: 0
114+
- _SpecularHighlights: 0
115+
- _SrcBlend: 1
116+
- _Surface: 0
117+
- _UVSec: 0
118+
- _ZWrite: 1
119+
m_Colors:
120+
- _BaseColor: {r: 1, g: 1, b: 1, a: 0}
121+
- _Color: {r: 1, g: 1, b: 1, a: 1}
122+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
123+
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
124+
m_BuildTextureStacks: []

Assets/Materials/Ground.mat.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Scenes/SampleScene.unity

+40-87
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ RenderSettings:
2020
m_FogDensity: 0.01
2121
m_LinearFogStart: 0
2222
m_LinearFogEnd: 300
23-
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24-
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25-
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
23+
m_AmbientSkyColor: {r: 0.9016172, g: 0.9379761, b: 1, a: 1}
24+
m_AmbientEquatorColor: {r: 0.7011392, g: 0.7316701, b: 0.8584906, a: 1}
25+
m_AmbientGroundColor: {r: 0.8396226, g: 0.6805916, b: 0.47186336, a: 1}
2626
m_AmbientIntensity: 1
27-
m_AmbientMode: 0
28-
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29-
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
27+
m_AmbientMode: 1
28+
m_SubtractiveShadowColor: {r: 0.33922213, g: 0.4114251, b: 0.5943396, a: 1}
29+
m_SkyboxMaterial: {fileID: 0}
3030
m_HaloStrength: 0.5
3131
m_FlareStrength: 1
3232
m_FlareFadeSpeed: 3
3333
m_HaloTexture: {fileID: 0}
3434
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35-
m_DefaultReflectionMode: 0
35+
m_DefaultReflectionMode: 1
3636
m_DefaultReflectionResolution: 128
3737
m_ReflectionBounces: 1
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.574817, a: 1}
41+
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
4242
m_UseRadianceAmbientProbe: 0
4343
--- !u!157 &3
4444
LightmapSettings:
@@ -98,7 +98,8 @@ LightmapSettings:
9898
m_TrainingDataDestination: TrainingData
9999
m_LightProbeSampleCountMultiplier: 4
100100
m_LightingDataAsset: {fileID: 0}
101-
m_LightingSettings: {fileID: 1165446970}
101+
m_LightingSettings: {fileID: 4890085278179872738, guid: 1f487bbe83549f6499da7f4262c9232d,
102+
type: 2}
102103
--- !u!196 &4
103104
NavMeshSettings:
104105
serializedVersion: 2
@@ -163,15 +164,14 @@ Transform:
163164
m_PrefabInstance: {fileID: 0}
164165
m_PrefabAsset: {fileID: 0}
165166
m_GameObject: {fileID: 10080508}
166-
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
167-
m_LocalPosition: {x: 0, y: 0, z: 0}
167+
m_LocalRotation: {x: 0.13052616, y: 0, z: 0, w: 0.9914449}
168+
m_LocalPosition: {x: 0, y: 1, z: 0}
168169
m_LocalScale: {x: 1, y: 1, z: 1}
169170
m_Children:
170171
- {fileID: 534669905}
171-
- {fileID: 170076735}
172172
m_Father: {fileID: 0}
173173
m_RootOrder: 0
174-
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
174+
m_LocalEulerAnglesHint: {x: 15, y: 0, z: 0}
175175
--- !u!1 &170076733
176176
GameObject:
177177
m_ObjectHideFlags: 0
@@ -200,8 +200,8 @@ Light:
200200
serializedVersion: 10
201201
m_Type: 1
202202
m_Shape: 0
203-
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
204-
m_Intensity: 1
203+
m_Color: {r: 0.99215686, g: 0.96962065, b: 0.85490197, a: 1}
204+
m_Intensity: 0.7
205205
m_Range: 10
206206
m_SpotAngle: 30
207207
m_InnerSpotAngle: 21.80208
@@ -210,7 +210,7 @@ Light:
210210
m_Type: 1
211211
m_Resolution: -1
212212
m_CustomResolution: -1
213-
m_Strength: 1
213+
m_Strength: 0.8
214214
m_Bias: 0.1
215215
m_NormalBias: 0.4
216216
m_NearPlane: 0.56
@@ -240,14 +240,15 @@ Light:
240240
serializedVersion: 2
241241
m_Bits: 4294967295
242242
m_RenderingLayerMask: 1
243-
m_Lightmapping: 1
243+
m_Lightmapping: 4
244244
m_LightShadowCasterMode: 0
245245
m_AreaSize: {x: 1, y: 1}
246246
m_BounceIntensity: 1
247247
m_ColorTemperature: 6570
248248
m_UseColorTemperature: 0
249249
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
250250
m_UseBoundingSphereOverride: 0
251+
m_UseViewFrustumForShadowCasterCull: 1
251252
m_ShadowRadius: 0
252253
m_ShadowAngle: 0
253254
--- !u!4 &170076735
@@ -261,8 +262,8 @@ Transform:
261262
m_LocalPosition: {x: 0, y: 3, z: 0}
262263
m_LocalScale: {x: 1, y: 1, z: 1}
263264
m_Children: []
264-
m_Father: {fileID: 10080510}
265-
m_RootOrder: 1
265+
m_Father: {fileID: 0}
266+
m_RootOrder: 5
266267
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
267268
--- !u!1 &534669902
268269
GameObject:
@@ -275,6 +276,7 @@ GameObject:
275276
- component: {fileID: 534669905}
276277
- component: {fileID: 534669904}
277278
- component: {fileID: 534669903}
279+
- component: {fileID: 534669906}
278280
m_Layer: 0
279281
m_Name: Main Camera
280282
m_TagString: Untagged
@@ -340,13 +342,25 @@ Transform:
340342
m_PrefabInstance: {fileID: 0}
341343
m_PrefabAsset: {fileID: 0}
342344
m_GameObject: {fileID: 534669902}
343-
m_LocalRotation: {x: 0.078459114, y: -0, z: -0, w: 0.99691737}
344-
m_LocalPosition: {x: 0, y: 2.5, z: -10}
345+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
346+
m_LocalPosition: {x: 0, y: 0, z: -10}
345347
m_LocalScale: {x: 1, y: 1, z: 1}
346348
m_Children: []
347349
m_Father: {fileID: 10080510}
348350
m_RootOrder: 0
349-
m_LocalEulerAnglesHint: {x: 9, y: 0, z: 0}
351+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
352+
--- !u!114 &534669906
353+
MonoBehaviour:
354+
m_ObjectHideFlags: 0
355+
m_CorrespondingSourceObject: {fileID: 0}
356+
m_PrefabInstance: {fileID: 0}
357+
m_PrefabAsset: {fileID: 0}
358+
m_GameObject: {fileID: 534669902}
359+
m_Enabled: 1
360+
m_EditorHideFlags: 0
361+
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
362+
m_Name:
363+
m_EditorClassIdentifier:
350364
--- !u!1 &624999758
351365
GameObject:
352366
m_ObjectHideFlags: 0
@@ -388,7 +402,7 @@ MeshRenderer:
388402
m_PrefabAsset: {fileID: 0}
389403
m_GameObject: {fileID: 624999758}
390404
m_Enabled: 1
391-
m_CastShadows: 1
405+
m_CastShadows: 0
392406
m_ReceiveShadows: 1
393407
m_DynamicOccludee: 1
394408
m_MotionVectors: 1
@@ -399,7 +413,7 @@ MeshRenderer:
399413
m_RenderingLayerMask: 4294967295
400414
m_RendererPriority: 0
401415
m_Materials:
402-
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
416+
- {fileID: 2100000, guid: f22f13907502ac441ba947b33c8621d8, type: 2}
403417
m_StaticBatchInfo:
404418
firstSubMesh: 0
405419
subMeshCount: 0
@@ -437,7 +451,7 @@ Transform:
437451
m_PrefabAsset: {fileID: 0}
438452
m_GameObject: {fileID: 624999758}
439453
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
440-
m_LocalPosition: {x: 0, y: -1, z: 0}
454+
m_LocalPosition: {x: 0, y: 0, z: 0}
441455
m_LocalScale: {x: 2, y: 2, z: 2}
442456
m_Children: []
443457
m_Father: {fileID: 0}
@@ -489,67 +503,6 @@ Transform:
489503
m_Father: {fileID: 0}
490504
m_RootOrder: 2
491505
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
492-
--- !u!850595691 &1165446970
493-
LightingSettings:
494-
m_ObjectHideFlags: 0
495-
m_CorrespondingSourceObject: {fileID: 0}
496-
m_PrefabInstance: {fileID: 0}
497-
m_PrefabAsset: {fileID: 0}
498-
m_Name: Settings.lighting
499-
serializedVersion: 2
500-
m_GIWorkflowMode: 0
501-
m_EnableBakedLightmaps: 1
502-
m_EnableRealtimeLightmaps: 0
503-
m_RealtimeEnvironmentLighting: 1
504-
m_BounceScale: 1
505-
m_AlbedoBoost: 1
506-
m_IndirectOutputScale: 1
507-
m_UsingShadowmask: 1
508-
m_BakeBackend: 1
509-
m_LightmapMaxSize: 512
510-
m_BakeResolution: 10
511-
m_Padding: 2
512-
m_TextureCompression: 1
513-
m_AO: 0
514-
m_AOMaxDistance: 1
515-
m_CompAOExponent: 1
516-
m_CompAOExponentDirect: 0
517-
m_ExtractAO: 0
518-
m_MixedBakeMode: 2
519-
m_LightmapsBakeMode: 1
520-
m_FilterMode: 1
521-
m_LightmapParameters: {fileID: 0}
522-
m_ExportTrainingData: 0
523-
m_TrainingDataDestination: TrainingData
524-
m_RealtimeResolution: 2
525-
m_ForceWhiteAlbedo: 0
526-
m_ForceUpdates: 0
527-
m_FinalGather: 0
528-
m_FinalGatherRayCount: 256
529-
m_FinalGatherFiltering: 1
530-
m_PVRCulling: 1
531-
m_PVRSampling: 1
532-
m_PVRDirectSampleCount: 32
533-
m_PVRSampleCount: 256
534-
m_PVREnvironmentSampleCount: 256
535-
m_PVREnvironmentReferencePointCount: 2048
536-
m_LightProbeSampleCountMultiplier: 4
537-
m_PVRBounces: 2
538-
m_PVRRussianRouletteStartBounce: 2
539-
m_PVREnvironmentMIS: 0
540-
m_PVRFilteringMode: 2
541-
m_PVRDenoiserTypeDirect: 0
542-
m_PVRDenoiserTypeIndirect: 0
543-
m_PVRDenoiserTypeAO: 0
544-
m_PVRFilterTypeDirect: 0
545-
m_PVRFilterTypeIndirect: 0
546-
m_PVRFilterTypeAO: 0
547-
m_PVRFilteringGaussRadiusDirect: 1
548-
m_PVRFilteringGaussRadiusIndirect: 5
549-
m_PVRFilteringGaussRadiusAO: 2
550-
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
551-
m_PVRFilteringAtrousPositionSigmaIndirect: 2
552-
m_PVRFilteringAtrousPositionSigmaAO: 1
553506
--- !u!1 &1635208545
554507
GameObject:
555508
m_ObjectHideFlags: 0
@@ -854,7 +807,7 @@ Transform:
854807
m_PrefabAsset: {fileID: 0}
855808
m_GameObject: {fileID: 2066011075}
856809
m_LocalRotation: {x: 0.35355338, y: 0.1464466, z: -0.35355338, w: 0.8535535}
857-
m_LocalPosition: {x: 0, y: 0, z: 0}
810+
m_LocalPosition: {x: 0, y: 0.8535534, z: 0}
858811
m_LocalScale: {x: 1, y: 1, z: 1}
859812
m_Children: []
860813
m_Father: {fileID: 0}

0 commit comments

Comments
 (0)