Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
950aaab
hacked through problems to avoid compilation errors. Still problem wi…
pravusjif Jul 17, 2023
a2cd7d0
fixed emscripten building process
pravusjif Jul 24, 2023
371920b
temporarily removed UberPost shader due to compilation errors
pravusjif Jul 24, 2023
829f2b2
minimum file modifications needed to be able to start the build with …
pravusjif Jul 25, 2023
4ce804b
updated emscripten linker flags for PTHREADS
pravusjif Jul 26, 2023
24e6172
re-disabled splash screen setting
pravusjif Jul 26, 2023
bf1792a
Unity auto-updated files
pravusjif Jul 26, 2023
4cb8ae7
re-added ubepost shader with fixes
pravusjif Aug 2, 2023
ebf8009
Merge branch 'dev' of https://github.com/decentraland/unity-renderer …
pravusjif Aug 2, 2023
14fb066
added another fix for uberpost shader
pravusjif Aug 2, 2023
2338ec5
added another fix for uberpost shader
pravusjif Aug 2, 2023
b5e4aaa
updated minor version to 2022.3.6f1
pravusjif Aug 3, 2023
5f80002
updated CI yaml file to run Unity 2022.3.6f1 in CI
pravusjif Aug 3, 2023
562eede
updated unity loader js file in kernel with one from a local build fr…
pravusjif Aug 3, 2023
1e9a994
removed emscripten 'MAXIMUM_MEMORY' linker flag; updated unity loader…
pravusjif Aug 5, 2023
483f85f
updated unity loader file again
pravusjif Aug 5, 2023
e57d6a0
added unity auto-modified files
pravusjif Aug 5, 2023
6f2f76f
re-added emscripten linker flag 'MAXIMUM_MEMORY' to see if it brakes …
pravusjif Aug 5, 2023
7c2a7b1
fixed GaussianBlurHandler fatal error
pravusjif Aug 9, 2023
ed69f7c
other gaussian blur fix
pravusjif Aug 9, 2023
80fbf3a
finally finished fixing UberPost shader problem with transparencies
pravusjif Aug 10, 2023
2090015
manually disabled 'm_ShowUnitySplashScreen' and 'm_ShowUnitySplashLog…
pravusjif Aug 10, 2023
fa30f48
Merge branch 'dev' of https://github.com/decentraland/unity-renderer …
pravusjif Aug 10, 2023
1fc6d35
updated CharacterPreview prefab camera background color from white to…
pravusjif Aug 10, 2023
63dffd1
Added mipmapping specification in Graphics.CopyTexture as now that's …
pravusjif Aug 11, 2023
de903ce
updated some albedo alpha visual test resources
pravusjif Aug 11, 2023
20873cc
fixed test
pravusjif Aug 14, 2023
56e5204
Merge branch 'dev' of https://github.com/decentraland/unity-renderer …
pravusjif Aug 17, 2023
cdb00d7
updated docker image version to see if it helps with weird CI error
pravusjif Aug 17, 2023
0372f93
Merge branch 'dev' of https://github.com/decentraland/unity-renderer …
pravusjif Aug 21, 2023
f1b32c5
Merge branch 'test/perf-profiling-unity2022.3.4f1' of https://github.…
pravusjif Aug 22, 2023
3b37e98
updated unity version to 2022.3.7f1 (contains fix for webgl multi-thr…
pravusjif Aug 25, 2023
f78952e
updated unity loader with latest automatic version
pravusjif Aug 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ references:
at: *working_directory

.unity_linux_image: &unity_linux_image
- image: unityci/editor:ubuntu-2021.3.22f1-linux-il2cpp-1.0.1
- image: unityci/editor:ubuntu-2022.3.7f1-linux-il2cpp-2.0.0
environment:
DCL_OUTPUT_NAME: linux
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
Expand All @@ -23,7 +23,7 @@ references:
# ~~~~~~~~~~~~~~~~~~~~ <- folder name

.unity_mac_image: &unity_mac_image
- image: unityci/editor:ubuntu-2021.3.22f1-mac-mono-1.0.1
- image: unityci/editor:ubuntu-2022.3.7f1-mac-mono-2.0.0
environment:
DCL_OUTPUT_NAME: mac
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
Expand All @@ -34,7 +34,7 @@ references:
# ~~~~~~~~~~~~~~~~~~ <- folder name

.unity_windows_image: &unity_windows_image
- image: unityci/editor:ubuntu-2021.3.22f1-windows-mono-1.0.1
- image: unityci/editor:ubuntu-2022.3.7f1-windows-mono-2.0.0
environment:
DCL_OUTPUT_NAME: windows
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
Expand All @@ -45,7 +45,7 @@ references:
# ~~~~~~~~~~~~~~~~~~~~~~ <- folder name

.unity_webgl_image: &unity_webgl_image
- image: unityci/editor:2021.3.22f1-webgl-1
- image: unityci/editor:2022.3.7f1-webgl-2.0.0
environment:
DCL_OUTPUT_NAME: webgl
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
Expand Down
2 changes: 2 additions & 0 deletions browser-interface/packages/shared/renderer/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ function* initializeRenderer(action: InitializeRenderer) {

// start loading the renderer
try {
console.log('PRAVS - 1')
const { renderer, transport }: { renderer: UnityGame; transport: Transport } = yield call(delegate, container)
console.log('PRAVS - 2')

const startTime = performance.now()

Expand Down
4 changes: 3 additions & 1 deletion browser-interface/packages/unity-interface/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { store } from 'shared/store/isolatedStore'
const generatedFiles = {
frameworkUrl: 'unity.framework.js',
dataUrl: 'unity.data',
codeUrl: 'unity.wasm'
codeUrl: 'unity.wasm',
workerUrl: 'unity.worker.js'
}

export type LoadRendererResult = {
Expand Down Expand Up @@ -112,6 +113,7 @@ async function initializeWebRenderer(options: RendererOptions): Promise<Decentra
dataUrl: resolveWithBaseUrl(generatedFiles.dataUrl + postfix),
frameworkUrl: resolveWithBaseUrl(generatedFiles.frameworkUrl + postfix),
codeUrl: resolveWithBaseUrl(generatedFiles.codeUrl + postfix),
workerUrl: resolveWithBaseUrl(generatedFiles.workerUrl + postfix),
streamingAssetsUrl: new URL('StreamingAssets', baseUrl).toString(),
companyName: 'Decentraland',
productName: 'Decentraland World Client',
Expand Down
9 changes: 9 additions & 0 deletions browser-interface/runTestServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ const http = require('http')
const singleRun = !(process.env.SINGLE_RUN === 'true')
const port = process.env.PORT || 8080
const app = express()
app.use((req, res, next) => {
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});

const server = http.createServer(app)

Expand Down Expand Up @@ -49,6 +54,8 @@ const server = http.createServer(app)
express.static(resolve(__dirname, './static/preview.html'), {
setHeaders: (res) => {
res.setHeader('Content-Type', 'text/html')
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
}
})
)
Expand All @@ -58,6 +65,8 @@ const server = http.createServer(app)
express.static(resolve(__dirname, './static/index.html'), {
setHeaders: (res) => {
res.setHeader('Content-Type', 'text/html')
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
}
})
)
Expand Down
2 changes: 1 addition & 1 deletion browser-interface/static/unity.loader.js

Large diffs are not rendered by default.

Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ void UpdateSystem()
{
components = { 1 }
};
uiDocumentInstance.rootVisualElement.Add(internalUiComponent.rootElement);

internalComponents.uiContainerComponent.PutFor(scene, entity, internalUiComponent);

Expand Down
8 changes: 7 additions & 1 deletion unity-renderer/Assets/Materials/GizmosMaterialInWorld.mat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 5
version: 7
--- !u!21 &2100000
Material:
serializedVersion: 8
Expand All @@ -22,6 +22,8 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: GizmosMaterialInWorld
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
Expand All @@ -31,6 +33,7 @@ Material:
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -93,6 +96,7 @@ Material:
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _AlphaToMask: 0
- _BaseMapUVs: 0
- _Blend: 0
- _BlendOp: 0
Expand All @@ -102,6 +106,7 @@ Material:
- _CullYPlane: 0.5
- _Cutoff: 0.5
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissiveMapUVs: 0
- _EnvironmentReflections: 1
- _FadeDirection: 0
Expand All @@ -124,6 +129,7 @@ Material:
- _SpecSource: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
Expand Down
8 changes: 7 additions & 1 deletion unity-renderer/Assets/Materials/ParcelMinimapIcon.mat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: ParcelMinimapIcon
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
Expand All @@ -18,6 +20,7 @@ Material:
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -52,12 +55,14 @@ Material:
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
Expand All @@ -71,6 +76,7 @@ Material:
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
Expand All @@ -92,4 +98,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 5
version: 7
9 changes: 8 additions & 1 deletion unity-renderer/Assets/Materials/TileGround.mat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 5
version: 7
--- !u!21 &2100000
Material:
serializedVersion: 8
Expand All @@ -22,6 +22,8 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: TileGround
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
Expand All @@ -31,6 +33,7 @@ Material:
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -93,12 +96,15 @@ Material:
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossinessSource: 0
Expand All @@ -116,6 +122,7 @@ Material:
- _SpecSource: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _ZWrite: 1
Expand Down
31 changes: 22 additions & 9 deletions unity-renderer/Assets/Rendering/Common/ForwardRenderer.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,28 @@ MonoBehaviour:
m_Name: NewScreenSpaceAmbientOcclusion
m_EditorClassIdentifier:
m_Active: 1
m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
m_Settings:
AOMethod: 1
Downsample: 0
AfterOpaque: 0
Source: 1
NormalSamples: 2
Intensity: 1.2
DirectLightingStrength: 0.6
Radius: 0.2
SampleCount: 4
Samples: 2
BlurQuality: 0
Falloff: 100
SampleCount: -1
m_BlueNoise256Textures:
- {fileID: 2800000, guid: 36f118343fc974119bee3d09e2111500, type: 3}
- {fileID: 2800000, guid: 4b7b083e6b6734e8bb2838b0b50a0bc8, type: 3}
- {fileID: 2800000, guid: c06cc21c692f94f5fb5206247191eeee, type: 3}
- {fileID: 2800000, guid: cb76dd40fa7654f9587f6a344f125c9a, type: 3}
- {fileID: 2800000, guid: e32226222ff144b24bf3a5a451de54bc, type: 3}
- {fileID: 2800000, guid: 3302065f671a8450b82c9ddf07426f3a, type: 3}
- {fileID: 2800000, guid: 56a77a3e8d64f47b6afe9e3c95cb57d5, type: 3}
m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
--- !u!114 &-5304858544757240251
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -80,15 +92,13 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Active: 0
settings:
outlineThickness: 0
blurSize: 0
blurSigma: 0
outlineColor: {r: 0, g: 1, b: 1, a: 1}
blurColor: {r: 0, g: 1, b: 1, a: 1}
innerColor: {r: 0, g: 0.85890675, b: 1, a: 0.050980393}
effectFade: 1
outlineThickness: {fileID: 11400000, guid: 3b2a0097ac4974c4dbd22fdfcbd5cfeb, type: 2}
outlineResolutionScale: {fileID: 11400000, guid: 051dce077ac0fe84ebdd212db125cae5,
type: 2}
blurSize: {fileID: 11400000, guid: 71984a406e9d00c4eb55991db791d8d2, type: 2}
blurSigma: {fileID: 11400000, guid: 15aeca967a14da64882661d82afedba4, type: 2}
filterMode: 1
--- !u!114 &-981180908113067146
MonoBehaviour:
Expand Down Expand Up @@ -127,6 +137,7 @@ MonoBehaviour:
debugShaders:
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
type: 3}
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
m_RendererFeatures:
- {fileID: -7551554940414059620}
- {fileID: 4650022159256899313}
Expand All @@ -144,14 +155,18 @@ MonoBehaviour:
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
fallbackLoadingPS: {fileID: 4800000, guid: 7f888aff2ac86494babad1c2c5daeee2, type: 3}
materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3}
coreBlitPS: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3}
coreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b,
type: 3}
blitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf,
type: 3}
objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486,
type: 3}
dataDrivenLensFlare: {fileID: 4800000, guid: 6cda457ac28612740adb23da5d39ea92,
type: 3}
m_AssetVersion: 2
m_OpaqueLayerMask:
serializedVersion: 2
Expand All @@ -171,8 +186,6 @@ MonoBehaviour:
m_DepthPrimingMode: 0
m_CopyDepthMode: 0
m_AccurateGbufferNormals: 0
m_ClusteredRendering: 0
m_TileSize: 32
m_IntermediateTextureMode: 1
--- !u!114 &1990522510072472895
MonoBehaviour:
Expand Down
Loading