Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 0 additions & 6 deletions examples/jsm/inspector/extensions/extensions.json

This file was deleted.

15 changes: 8 additions & 7 deletions examples/jsm/inspector/tabs/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { Parameters } from './Parameters.js';
import { WebGPURenderer, WebGLBackend, Node } from 'three/webgpu';
import { getItem, setItem } from '../Inspector.js';

const _EXTENSIONS_PATH = '../extensions/extensions.json';
const _extensions = [
{
name: 'TSL Graph',
url: '../extensions/tsl-graph/TSLGraphEditor.js'
}
];

const _init = WebGPURenderer.prototype.init;

Expand Down Expand Up @@ -261,7 +266,7 @@ Shares the same state across any page within the current origin.` );

extension.active = true;

const extUrl = new URL( extension.url, new URL( _EXTENSIONS_PATH, import.meta.url ) ).href;
const extUrl = new URL( extension.url, import.meta.url ).href;

const module = await import( extUrl );

Expand All @@ -282,11 +287,7 @@ Shares the same state across any page within the current origin.` );

async _getExtensions() {

const url = new URL( _EXTENSIONS_PATH, import.meta.url );

const extensions = await fetch( url ).then( res => res.json() );

return extensions;
return _extensions;

}

Expand Down