Skip to content

Commit 96e797a

Browse files
committed
Change tweak graphics settings, Change cube material to use GPU instancing 💪
1 parent 6d66280 commit 96e797a

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

Assets/Materials/Default.mat

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ Material:
55
serializedVersion: 6
66
m_ObjectHideFlags: 0
77
m_CorrespondingSourceObject: {fileID: 0}
8-
m_PrefabInternal: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
910
m_Name: Default
1011
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
1112
m_ShaderKeywords:
1213
m_LightmapFlags: 4
13-
m_EnableInstancingVariants: 0
14+
m_EnableInstancingVariants: 1
1415
m_DoubleSidedGI: 0
1516
m_CustomRenderQueue: -1
1617
stringTagMap: {}
@@ -74,3 +75,4 @@ Material:
7475
m_Colors:
7576
- _Color: {r: 0.5754717, g: 0.5754717, b: 0.5754717, a: 1}
7677
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78+
m_BuildTextureStacks: []

ProjectSettings/Physics2DSettings.asset

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--- !u!19 &1
44
Physics2DSettings:
55
m_ObjectHideFlags: 0
6-
serializedVersion: 4
6+
serializedVersion: 5
77
m_Gravity: {x: 0, y: -9.81}
88
m_DefaultMaterial: {fileID: 0}
99
m_VelocityIterations: 8
@@ -38,7 +38,7 @@ Physics2DSettings:
3838
m_IslandSolverJointCostScale: 10
3939
m_IslandSolverBodiesPerJob: 50
4040
m_IslandSolverContactsPerJob: 50
41-
m_AutoSimulation: 0
41+
m_SimulationMode: 2
4242
m_QueriesHitTriggers: 1
4343
m_QueriesStartInColliders: 1
4444
m_CallbacksOnDisable: 1

ProjectSettings/QualitySettings.asset

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ QualitySettings:
1111
pixelLightCount: 0
1212
shadows: 1
1313
shadowResolution: 1
14-
shadowProjection: 0
14+
shadowProjection: 1
1515
shadowCascades: 1
1616
shadowDistance: 18
1717
shadowNearPlaneOffset: 3

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,27 @@ Version | Size | Link
88
--- | --- | ---
99
2018.2.3f1 | 2.97 MB (3,121,037 bytes) | https://deml.io/experiments/unity-webgl/2018.2.3f1/
1010
2019.3.0f6 | 3.28 MB (3,448,034 bytes) | https://deml.io/experiments/unity-webgl/2019.3.0f6/
11-
2020.0.1f1 | 2.86 MB (3,006,731 bytes) | https://deml.io/experiments/unity-webgl/2020.1.0f1/
11+
2020.0.1f1 | 2.86 MB (3,007,240 bytes) | https://deml.io/experiments/unity-webgl/2020.1.0f1/
1212

1313
## Platforms
14+
1415
Platform | Tested
1516
--- | ---
1617
Android | ✅
1718
iOS | ✅
1819
Mac | ✅
1920
Windows 10 | ✅
2021

22+
## Features
23+
24+
* Physics
25+
* GPU Instancing for materials
26+
* Shadows
27+
* Brotli Compression
2128

2229
## Notes
23-
* The server is configured to support wasm streaming, see [.htaccess 2020](./Configuration/2020/.htaccess) [.htaccess 2019](./Configuration/2019/.htaccess)
30+
31+
* The server is configured to support wasm streaming and brotli compression, see [.htaccess 2020](./Configuration/2020/.htaccess) [.htaccess 2019](./Configuration/2019/.htaccess)
2432
* In order to get rid of the warning on iOS it is removed in a post process build step ([File](./Assets/Scripts/Editor/RemoveMobileSupportWarningWebBuild.cs))
2533

2634
For further information check out the [forum-thread](https://forum.unity.com/threads/webgl-builds-for-mobile.545877/).

0 commit comments

Comments
 (0)