|
@@ -49,7 +49,6 @@
|
|
|
import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
|
|
|
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
|
|
|
import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
|
|
|
- import WebGL from 'three/addons/capabilities/WebGL.js';
|
|
|
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|
|
|
|
|
let camera, renderer, group, container;
|
|
@@ -66,13 +65,6 @@
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
- if ( WebGL.isWebGL2Available() === false ) {
|
|
|
-
|
|
|
- document.body.appendChild( WebGL.getWebGL2ErrorMessage() );
|
|
|
- return;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
container = document.getElementById( 'container' );
|
|
|
|
|
|
camera = new THREE.PerspectiveCamera( 45, container.offsetWidth / container.offsetHeight, 10, 2000 );
|