Skip to content

Commit 65d3f43

Browse files
committed
Switch to single shader bundle (this doesn't work yet)
1 parent 6702857 commit 65d3f43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+294
-137
lines changed
1.17 KB
Binary file not shown.
-21.2 KB
Binary file not shown.
-56.9 KB
Binary file not shown.
-62.9 KB
Binary file not shown.
-57.6 KB
Binary file not shown.
13.2 KB
Binary file not shown.
1.41 KB
Binary file not shown.

SCANsat/SCAN_Unity/SCAN_UI_Loader.cs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ public class SCAN_UI_Loader : MonoBehaviour
3434
private const string prefabAssetName = "scan_prefabs.scan";
3535
private const string unitySkinAssetName = "scan_unity_skin.scan";
3636
private const string iconAssetName = "scan_icons.scan";
37-
private const string shadersAssetName = "scan_shaders";
38-
private const string winShaderName = "-windows.scan";
39-
private const string linuxShaderName = "-linux.scan";
40-
private const string macShaderName = "-macosx.scan";
37+
private const string shadersAssetName = "scan_shaders.scan";
4138

4239
private static bool loaded;
4340
private static bool skinLoaded;
@@ -381,18 +378,7 @@ private IEnumerator loadResources()
381378

382379
private static void loadShaders()
383380
{
384-
string shaderPath;
385-
386-
if (Application.platform == RuntimePlatform.WindowsPlayer && SystemInfo.graphicsDeviceVersion.StartsWith("OpenGL"))
387-
shaderPath = shadersAssetName + linuxShaderName;
388-
else if (Application.platform == RuntimePlatform.WindowsPlayer)
389-
shaderPath = shadersAssetName + winShaderName;
390-
else if (Application.platform == RuntimePlatform.LinuxPlayer)
391-
shaderPath = shadersAssetName + linuxShaderName;
392-
else
393-
shaderPath = shadersAssetName + macShaderName;
394-
395-
AssetBundle shaders = AssetBundle.LoadFromFile(path + shaderPath);
381+
AssetBundle shaders = AssetBundle.LoadFromFile(path + shadersAssetName);
396382

397383
if (shaders == null)
398384
return;
@@ -410,7 +396,7 @@ private static void loadShaders()
410396
_edgeDetectShader = s;
411397
}
412398

413-
SCANUtil.SCANlog("Shader asset bundle loaded; using platform bundle: {0}", shaderPath);
399+
SCANUtil.SCANlog("Shader asset bundle loaded; using platform bundle: {0}", shadersAssetName);
414400

415401
//shaders.Unload(false);
416402

365 Bytes
Binary file not shown.

Unity/SCANsat/AssetBundles/AssetBundles.manifest

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ManifestFileVersion: 0
2-
CRC: 484482127
2+
CRC: 3813315843
33
AssetBundleManifest:
44
AssetBundleInfos:
55
Info_0:
@@ -16,3 +16,22 @@ AssetBundleManifest:
1616
Info_3:
1717
Name: scan_icons
1818
Dependencies: {}
19+
Info_4:
20+
Name: scan_images
21+
Dependencies: {}
22+
Info_5:
23+
Name: scansat_prefabs
24+
Dependencies: {}
25+
Info_6:
26+
Name: scan_ghost
27+
Dependencies: {}
28+
Info_7:
29+
Name: unity_ghost
30+
Dependencies: {}
31+
Info_8:
32+
Name: scansat_core
33+
Dependencies:
34+
Dependency_0: squadcore
35+
Info_9:
36+
Name: squadcore
37+
Dependencies: {}

0 commit comments

Comments
 (0)