|
@@ -59,7 +59,6 @@
|
|
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
|
|
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
|
|
import WGSLNodeBuilder from 'three/addons/renderers/webgpu/nodes/WGSLNodeBuilder.js';
|
|
import WGSLNodeBuilder from 'three/addons/renderers/webgpu/nodes/WGSLNodeBuilder.js';
|
|
import GLSLNodeBuilder from 'three/addons/renderers/webgl/nodes/GLSLNodeBuilder.js';
|
|
import GLSLNodeBuilder from 'three/addons/renderers/webgl/nodes/GLSLNodeBuilder.js';
|
|
- import GLSL1NodeBuilder from 'three/addons/renderers/webgl-legacy/nodes/GLSL1NodeBuilder.js';
|
|
|
|
|
|
|
|
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|
|
|
|
|
@@ -109,7 +108,7 @@
|
|
|
|
|
|
// editor
|
|
// editor
|
|
|
|
|
|
- window.require.config( { paths: { 'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs' } } );
|
|
|
|
|
|
+ window.require.config( { paths: { 'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.48.0/min/vs' } } );
|
|
|
|
|
|
require( [ 'vs/editor/editor.main' ], () => {
|
|
require( [ 'vs/editor/editor.main' ], () => {
|
|
|
|
|
|
@@ -196,10 +195,6 @@ output = vec4( finalColor, opacity );
|
|
|
|
|
|
NodeBuilder = GLSLNodeBuilder;
|
|
NodeBuilder = GLSLNodeBuilder;
|
|
|
|
|
|
- } else {
|
|
|
|
-
|
|
|
|
- NodeBuilder = GLSL1NodeBuilder;
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
nodeBuilder = new NodeBuilder( mesh, renderer );
|
|
nodeBuilder = new NodeBuilder( mesh, renderer );
|
|
@@ -238,7 +233,7 @@ output = vec4( finalColor, opacity );
|
|
|
|
|
|
const gui = new GUI();
|
|
const gui = new GUI();
|
|
|
|
|
|
- gui.add( options, 'output', [ 'WGSL', 'GLSL ES 3.0', 'GLSL' ] ).onChange( build );
|
|
|
|
|
|
+ gui.add( options, 'output', [ 'WGSL', 'GLSL ES 3.0' ] ).onChange( build );
|
|
gui.add( options, 'shader', [ 'vertex', 'fragment' ] ).onChange( showCode );
|
|
gui.add( options, 'shader', [ 'vertex', 'fragment' ] ).onChange( showCode );
|
|
|
|
|
|
gui.add( options, 'outputColorSpace', [ THREE.LinearSRGBColorSpace, THREE.SRGBColorSpace ] ).onChange( ( value ) => {
|
|
gui.add( options, 'outputColorSpace', [ THREE.LinearSRGBColorSpace, THREE.SRGBColorSpace ] ).onChange( ( value ) => {
|