diff --git a/docs/tutorials/list.json b/docs/tutorials/list.json index 8b05a0bcde..c76d891777 100644 --- a/docs/tutorials/list.json +++ b/docs/tutorials/list.json @@ -2,9 +2,6 @@ "Fundamentals": { "title": "Fundamentals" }, - "webgl": { - "title": "WebGL 1.0/2.0" - }, "Raster-data-Lambert93": { "title": "Lambert conformal conic" }, diff --git a/docs/tutorials/webgl.md b/docs/tutorials/webgl.md deleted file mode 100644 index 205f82512f..0000000000 --- a/docs/tutorials/webgl.md +++ /dev/null @@ -1,32 +0,0 @@ -**iTowns** supports **WebGL 2.0** and is enabled by default. -If you want instance instance with **WebGL 1.0** use option **`renderer: { isWebGL2: false }`** to instance the viewer. - -### Example to instance viewer in WebGL 2.0. -```js -// for GlobeView -const gView = new GlobeView(viewerDiv, placement); - -// for PlanarView -const pView = new PlanarView(viewerDiv, extent); - -// for View -const view = new View(crs, viewerDiv); - -// is version webgl 2.0 after instance? -const isWebGL2 = view.mainLoop.gfxEngine.renderer.capabilities.isWebGL2; // true -``` - -### Example to instance viewer in WebGL 1.0. -```js -// for GlobeView -const gView = new GlobeView(viewerDiv, placement, { renderer: { isWebGL2: false } }); - -// for PlanarView -const pView = new PlanarView(viewerDiv, extent, { renderer: { isWebGL2: false } }); - -// for View -const view = new View(crs, viewerDiv, { renderer: { isWebGL2: false } }); - -// is version webgl 1.0 after instance? -const isWebGL2 = view.mainLoop.gfxEngine.renderer.capabilities.isWebGL2; // false -``` \ No newline at end of file