Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
add ee material example
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Aug 13, 2024
1 parent 538ebaa commit c70bf54
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
Binary file added assets/GLTF/double-mat-test.glb
Binary file not shown.
16 changes: 8 additions & 8 deletions resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
],
"dependencies": []
},
"assets/GLTF/double-mat-test.glb": {
"type": "file",
"tags": [
"Model"
],
"dependencies": []
},
"assets/GLTF/Duck/.ds_store": {
"type": "file",
"tags": [
Expand Down Expand Up @@ -279,15 +286,8 @@
],
"dependencies": []
},
"assets/GLTF/lightmap_test.glb": {
"type": "asset",
"tags": [
"Model"
],
"dependencies": []
},
"assets/GLTF/lightmaptest.glb": {
"type": "file",
"type": "asset",
"tags": [
"Model"
],
Expand Down
6 changes: 6 additions & 0 deletions src/examples/GLTFs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ export const gltfRoutes = [
name: 'MOZ_lightmap',
description: 'Mozilla Lightmap Extension',
entry: () => <GLTFViewer src={fileServer + '/projects/ee-development-test-suite/assets/GLTF/lightmaptest.glb'} light />
},
{
name: 'EE_material',
description: 'Ethereal Engine Material Extension',
/** @todo currently relies on eepro advanced materials project - replace asset with one that has base custom material */
entry: () => <GLTFViewer src={fileServer + '/projects/ee-development-test-suite/assets/GLTF/double-mat-test.glb'} light />
}
] as RouteData[]

Expand Down
3 changes: 3 additions & 0 deletions src/examplesRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ImmersiveVR from './examples/immersiveVR'
import MultipleScenesEntry from './examples/multipleScenes'
import Routes, { RouteCategories } from './sceneRoute'
import { gltfRoutes } from './examples/GLTFs'
import { useEngineInjection } from '@etherealengine/client-core/src/components/World/EngineHooks'

export const examples: RouteCategories = [
{
Expand Down Expand Up @@ -74,6 +75,8 @@ export const examples: RouteCategories = [
]

const ExampleRoutes = () => {
const projectsLoaded = useEngineInjection()
if (!projectsLoaded) return <></>
return <Routes routeCategories={examples} header="Examples" />
}

Expand Down

0 comments on commit c70bf54

Please sign in to comment.