Skip to content

Commit b2ffef5

Browse files
committed
prefabs: Create light.
1 parent c85bf0f commit b2ffef5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Assets/Art/Materials/Visual Pinball/Light (Bulb).mat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Material:
2222
m_PrefabAsset: {fileID: 0}
2323
m_Name: Light (Bulb)
2424
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
25-
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _ENABLE_FOG_ON_TRANSPARENT _NORMALMAP_TANGENT_SPACE
26-
_SURFACE_TYPE_TRANSPARENT
25+
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _ENABLE_FOG_ON_TRANSPARENT _MATERIAL_FEATURE_IRIDESCENCE
26+
_NORMALMAP_TANGENT_SPACE _SURFACE_TYPE_TRANSPARENT
2727
m_LightmapFlags: 4
2828
m_EnableInstancingVariants: 0
2929
m_DoubleSidedGI: 0
@@ -186,7 +186,7 @@ Material:
186186
- _IridescenceMask: 1
187187
- _IridescenceThickness: 1
188188
- _LinkDetailsWithBase: 1
189-
- _MaterialID: 1
189+
- _MaterialID: 3
190190
- _Metallic: 0
191191
- _MetallicRemapMax: 1
192192
- _MetallicRemapMin: 0
@@ -241,9 +241,9 @@ Material:
241241
- _ZTestTransparent: 4
242242
- _ZWrite: 0
243243
m_Colors:
244-
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.0627451}
244+
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.34509805}
245245
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
246-
- _Color: {r: 1, g: 1, b: 1, a: 0.0627451}
246+
- _Color: {r: 1, g: 1, b: 1, a: 0.34509805}
247247
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
248248
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
249249
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}

Runtime/PrefabProvider.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public GameObject CreateKicker(int type)
6565
throw new ArgumentException(nameof(type), $"Unknown kicker type {type}.");
6666
}
6767
}
68+
public GameObject CreateLight()
69+
{
70+
return UnityEngine.Resources.Load<GameObject>("Prefabs/Light");
71+
}
6872

6973
public GameObject CreateSpinner()
7074
{

0 commit comments

Comments
 (0)