Skip to content

Commit 9d82837

Browse files
committed
First experiments with lighting emitters
1 parent 9570e2d commit 9d82837

21 files changed

+658
-537
lines changed

Assets/_Project/Lighting.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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!850595691 &4890085278179872738
4+
LightingSettings:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_Name: LightingTest
10+
serializedVersion: 2
11+
m_GIWorkflowMode: 0
12+
m_EnableBakedLightmaps: 1
13+
m_EnableRealtimeLightmaps: 1
14+
m_RealtimeEnvironmentLighting: 1
15+
m_BounceScale: 1
16+
m_AlbedoBoost: 1
17+
m_IndirectOutputScale: 1
18+
m_UsingShadowmask: 1
19+
m_BakeBackend: 1
20+
m_LightmapMaxSize: 256
21+
m_BakeResolution: 40
22+
m_Padding: 2
23+
m_TextureCompression: 1
24+
m_AO: 0
25+
m_AOMaxDistance: 1
26+
m_CompAOExponent: 1
27+
m_CompAOExponentDirect: 0
28+
m_ExtractAO: 0
29+
m_MixedBakeMode: 2
30+
m_LightmapsBakeMode: 1
31+
m_FilterMode: 1
32+
m_LightmapParameters: {fileID: 0}
33+
m_ExportTrainingData: 0
34+
m_TrainingDataDestination: TrainingData
35+
m_RealtimeResolution: 2
36+
m_ForceWhiteAlbedo: 0
37+
m_ForceUpdates: 0
38+
m_FinalGather: 0
39+
m_FinalGatherRayCount: 256
40+
m_FinalGatherFiltering: 1
41+
m_PVRCulling: 1
42+
m_PVRSampling: 1
43+
m_PVRDirectSampleCount: 32
44+
m_PVRSampleCount: 512
45+
m_PVREnvironmentSampleCount: 256
46+
m_PVREnvironmentReferencePointCount: 2048
47+
m_LightProbeSampleCountMultiplier: 4
48+
m_PVRBounces: 2
49+
m_PVRRussianRouletteStartBounce: 2
50+
m_PVREnvironmentMIS: 1
51+
m_PVRFilteringMode: 1
52+
m_PVRDenoiserTypeDirect: 1
53+
m_PVRDenoiserTypeIndirect: 1
54+
m_PVRDenoiserTypeAO: 1
55+
m_PVRFilterTypeDirect: 0
56+
m_PVRFilterTypeIndirect: 0
57+
m_PVRFilterTypeAO: 0
58+
m_PVRFilteringGaussRadiusDirect: 1
59+
m_PVRFilteringGaussRadiusIndirect: 5
60+
m_PVRFilteringGaussRadiusAO: 2
61+
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
62+
m_PVRFilteringAtrousPositionSigmaIndirect: 2
63+
m_PVRFilteringAtrousPositionSigmaAO: 1

Assets/_Project/Lighting/LightingTest.lighting.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: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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: hotnesseLight
11+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12+
m_ShaderKeywords: _EMISSION
13+
m_LightmapFlags: 1
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: -1
17+
stringTagMap: {}
18+
disabledShaderPasses: []
19+
m_SavedProperties:
20+
serializedVersion: 3
21+
m_TexEnvs:
22+
- _BumpMap:
23+
m_Texture: {fileID: 0}
24+
m_Scale: {x: 1, y: 1}
25+
m_Offset: {x: 0, y: 0}
26+
- _DetailAlbedoMap:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
30+
- _DetailMask:
31+
m_Texture: {fileID: 0}
32+
m_Scale: {x: 1, y: 1}
33+
m_Offset: {x: 0, y: 0}
34+
- _DetailNormalMap:
35+
m_Texture: {fileID: 0}
36+
m_Scale: {x: 1, y: 1}
37+
m_Offset: {x: 0, y: 0}
38+
- _EmissionMap:
39+
m_Texture: {fileID: 0}
40+
m_Scale: {x: 1, y: 1}
41+
m_Offset: {x: 0, y: 0}
42+
- _MainTex:
43+
m_Texture: {fileID: 0}
44+
m_Scale: {x: 1, y: 1}
45+
m_Offset: {x: 0, y: 0}
46+
- _MetallicGlossMap:
47+
m_Texture: {fileID: 0}
48+
m_Scale: {x: 1, y: 1}
49+
m_Offset: {x: 0, y: 0}
50+
- _OcclusionMap:
51+
m_Texture: {fileID: 0}
52+
m_Scale: {x: 1, y: 1}
53+
m_Offset: {x: 0, y: 0}
54+
- _ParallaxMap:
55+
m_Texture: {fileID: 0}
56+
m_Scale: {x: 1, y: 1}
57+
m_Offset: {x: 0, y: 0}
58+
m_Floats:
59+
- _BumpScale: 1
60+
- _Cutoff: 0.5
61+
- _DetailNormalMapScale: 1
62+
- _DstBlend: 0
63+
- _GlossMapScale: 1
64+
- _Glossiness: 0.5
65+
- _GlossyReflections: 1
66+
- _Metallic: 0
67+
- _Mode: 0
68+
- _OcclusionStrength: 1
69+
- _Parallax: 0.02
70+
- _SmoothnessTextureChannel: 0
71+
- _SpecularHighlights: 1
72+
- _SrcBlend: 1
73+
- _UVSec: 0
74+
- _ZWrite: 1
75+
m_Colors:
76+
- _Color: {r: 0.9843137, g: 0.24705882, b: 0.4862745, a: 1}
77+
- _EmissionColor: {r: 0.9843137, g: 0.24705882, b: 0.4862745, a: 1}
78+
m_BuildTextureStacks: []

Assets/_Project/Lighting/hotnesseLight.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: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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: ltpurpleLightStatic
11+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12+
m_ShaderKeywords: _EMISSION
13+
m_LightmapFlags: 2
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: -1
17+
stringTagMap: {}
18+
disabledShaderPasses: []
19+
m_SavedProperties:
20+
serializedVersion: 3
21+
m_TexEnvs:
22+
- _BumpMap:
23+
m_Texture: {fileID: 0}
24+
m_Scale: {x: 1, y: 1}
25+
m_Offset: {x: 0, y: 0}
26+
- _DetailAlbedoMap:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
30+
- _DetailMask:
31+
m_Texture: {fileID: 0}
32+
m_Scale: {x: 1, y: 1}
33+
m_Offset: {x: 0, y: 0}
34+
- _DetailNormalMap:
35+
m_Texture: {fileID: 0}
36+
m_Scale: {x: 1, y: 1}
37+
m_Offset: {x: 0, y: 0}
38+
- _EmissionMap:
39+
m_Texture: {fileID: 0}
40+
m_Scale: {x: 1, y: 1}
41+
m_Offset: {x: 0, y: 0}
42+
- _MainTex:
43+
m_Texture: {fileID: 0}
44+
m_Scale: {x: 1, y: 1}
45+
m_Offset: {x: 0, y: 0}
46+
- _MetallicGlossMap:
47+
m_Texture: {fileID: 0}
48+
m_Scale: {x: 1, y: 1}
49+
m_Offset: {x: 0, y: 0}
50+
- _OcclusionMap:
51+
m_Texture: {fileID: 0}
52+
m_Scale: {x: 1, y: 1}
53+
m_Offset: {x: 0, y: 0}
54+
- _ParallaxMap:
55+
m_Texture: {fileID: 0}
56+
m_Scale: {x: 1, y: 1}
57+
m_Offset: {x: 0, y: 0}
58+
m_Floats:
59+
- _BumpScale: 1
60+
- _Cutoff: 0.5
61+
- _DetailNormalMapScale: 1
62+
- _DstBlend: 0
63+
- _GlossMapScale: 1
64+
- _Glossiness: 0.5
65+
- _GlossyReflections: 1
66+
- _Metallic: 0
67+
- _Mode: 0
68+
- _OcclusionStrength: 1
69+
- _Parallax: 0.02
70+
- _SmoothnessTextureChannel: 0
71+
- _SpecularHighlights: 1
72+
- _SrcBlend: 1
73+
- _UVSec: 0
74+
- _ZWrite: 1
75+
m_Colors:
76+
- _Color: {r: 0.5686275, g: 0.3372549, b: 0.9137255, a: 1}
77+
- _EmissionColor: {r: 0.108585075, g: 0.034612734, b: 0.29351604, a: 1}
78+
m_BuildTextureStacks: []

Assets/_Project/Lighting/ltpurpleLightStatic.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: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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: skyLightStatic
11+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12+
m_ShaderKeywords: _EMISSION
13+
m_LightmapFlags: 2
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: -1
17+
stringTagMap: {}
18+
disabledShaderPasses: []
19+
m_SavedProperties:
20+
serializedVersion: 3
21+
m_TexEnvs:
22+
- _BumpMap:
23+
m_Texture: {fileID: 0}
24+
m_Scale: {x: 1, y: 1}
25+
m_Offset: {x: 0, y: 0}
26+
- _DetailAlbedoMap:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
30+
- _DetailMask:
31+
m_Texture: {fileID: 0}
32+
m_Scale: {x: 1, y: 1}
33+
m_Offset: {x: 0, y: 0}
34+
- _DetailNormalMap:
35+
m_Texture: {fileID: 0}
36+
m_Scale: {x: 1, y: 1}
37+
m_Offset: {x: 0, y: 0}
38+
- _EmissionMap:
39+
m_Texture: {fileID: 0}
40+
m_Scale: {x: 1, y: 1}
41+
m_Offset: {x: 0, y: 0}
42+
- _MainTex:
43+
m_Texture: {fileID: 0}
44+
m_Scale: {x: 1, y: 1}
45+
m_Offset: {x: 0, y: 0}
46+
- _MetallicGlossMap:
47+
m_Texture: {fileID: 0}
48+
m_Scale: {x: 1, y: 1}
49+
m_Offset: {x: 0, y: 0}
50+
- _OcclusionMap:
51+
m_Texture: {fileID: 0}
52+
m_Scale: {x: 1, y: 1}
53+
m_Offset: {x: 0, y: 0}
54+
- _ParallaxMap:
55+
m_Texture: {fileID: 0}
56+
m_Scale: {x: 1, y: 1}
57+
m_Offset: {x: 0, y: 0}
58+
m_Floats:
59+
- _BumpScale: 1
60+
- _Cutoff: 0.5
61+
- _DetailNormalMapScale: 1
62+
- _DstBlend: 0
63+
- _GlossMapScale: 1
64+
- _Glossiness: 0.5
65+
- _GlossyReflections: 1
66+
- _Metallic: 0
67+
- _Mode: 0
68+
- _OcclusionStrength: 1
69+
- _Parallax: 0.02
70+
- _SmoothnessTextureChannel: 0
71+
- _SpecularHighlights: 1
72+
- _SrcBlend: 1
73+
- _UVSec: 0
74+
- _ZWrite: 1
75+
m_Colors:
76+
- _Color: {r: 0.28627452, g: 0.78431374, b: 0.85490197, a: 1}
77+
- _EmissionColor: {r: 0.28627452, g: 0.78431374, b: 0.85490197, a: 1}
78+
m_BuildTextureStacks: []

Assets/_Project/Lighting/skyLightStatic.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.

Assets/_Project/Prefabs/Monster.prefab

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Transform:
2828
m_GameObject: {fileID: 4010505626693846101}
2929
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
3030
m_LocalPosition: {x: 0, y: 0, z: 0}
31-
m_LocalScale: {x: 1, y: 1, z: 1}
31+
m_LocalScale: {x: 2, y: 2, z: 1}
3232
m_Children: []
3333
m_Father: {fileID: 0}
3434
m_RootOrder: 0
@@ -97,10 +97,6 @@ MonoBehaviour:
9797
m_Name:
9898
m_EditorClassIdentifier:
9999
mid: 0
100-
sprites:
101-
- {fileID: 0}
102-
- {fileID: 0}
103-
- {fileID: 0}
104100
--- !u!114 &8692891494969316599
105101
MonoBehaviour:
106102
m_ObjectHideFlags: 0
@@ -113,7 +109,6 @@ MonoBehaviour:
113109
m_Script: {fileID: 11500000, guid: 3a543d293d6e3434d89dfdebc903b9ae, type: 3}
114110
m_Name:
115111
m_EditorClassIdentifier:
116-
mid: 0
117112
sr: {fileID: 0}
118113
sprites:
119114
- {fileID: 0}

0 commit comments

Comments
 (0)