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

Commit

Permalink
add old specular gloss and lightmap extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Aug 12, 2024
1 parent acd01b2 commit 392a1cc
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Binary file added assets/GLTF/lightmap_test.glb
Binary file not shown.
Binary file added assets/GLTF/lightmaptest.glb
Binary file not shown.
14 changes: 14 additions & 0 deletions resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,20 @@
],
"dependencies": []
},
"assets/GLTF/lightmap_test.glb": {
"type": "asset",
"tags": [
"Model"
],
"dependencies": []
},
"assets/GLTF/lightmaptest.glb": {
"type": "file",
"tags": [
"Model"
],
"dependencies": []
},
"assets/graph/default-graph.json": {
"type": "asset",
"tags": [
Expand Down
16 changes: 15 additions & 1 deletion src/examples/GLTFs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ import { VisibleComponent } from '@etherealengine/spatial/src/renderer/component
import { EntityTreeComponent } from '@etherealengine/spatial/src/transform/components/EntityTree'
import { AnimationClip, Color, Euler, Quaternion, Vector3 } from 'three'
import { RouteData } from '../sceneRoute'
import config from '@etherealengine/common/src/config'

export const metadata = {
title: 'GLTF',
description: ''
}

const fileServer = config.client.fileServer
const CDN_URL = 'https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0'

export const gltfRoutes = [
Expand Down Expand Up @@ -60,7 +62,9 @@ export const gltfRoutes = [
{
name: 'Morph Targets',
description: 'Morph Primitives Test',
entry: () => <GLTFViewer src={CDN_URL + '/AnimatedMorphCube/glTF/AnimatedMorphCube.gltf'} light animationClip={'Square'} />
entry: () => (
<GLTFViewer src={CDN_URL + '/AnimatedMorphCube/glTF/AnimatedMorphCube.gltf'} light animationClip={'Square'} />
)
},
{
name: 'KHR_materials_unlit',
Expand Down Expand Up @@ -137,6 +141,16 @@ export const gltfRoutes = [
description: 'GPU Instancing Extension',
// entry: () => <GLTFViewer src={'https://threejs.org/examples/models/gltf/DamagedHelmet/glTF-instancing/DamagedHelmetGpuInstancing.gltf'} light />
entry: () => <GLTFViewer src={CDN_URL + '/SimpleInstancing/glTF/SimpleInstancing.gltf'} light />
},
{
name: 'KHR_materials_pbrSpecularGlossiness',
description: 'DEPRECATED Khronos PBR Specular Glossiness Extension',
entry: () => <GLTFViewer src={CDN_URL + '/SpecGlossVsMetalRough/glTF/SpecGlossVsMetalRough.gltf'} light />
},
{
name: 'MOZ_lightmap',
description: 'Mozilla Lightmap Extension',
entry: () => <GLTFViewer src={fileServer + '/projects/ee-development-test-suite/assets/GLTF/lightmaptest.glb'} light />
}
] as RouteData[]

Expand Down

0 comments on commit 392a1cc

Please sign in to comment.