Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated all examples.
  • Loading branch information
mrdoob committed Sep 26, 2018
1 parent e406375 commit d3f5a0b
Show file tree
Hide file tree
Showing 231 changed files with 1,501 additions and 705 deletions.
8 changes: 6 additions & 2 deletions examples/misc_animation_groups.html
Expand Up @@ -35,12 +35,16 @@
</div>

<script src="../build/three.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var stats, clock;
var scene, camera, renderer, mixer;
Expand Down
8 changes: 6 additions & 2 deletions examples/misc_animation_keys.html
Expand Up @@ -35,12 +35,16 @@
</div>

<script src="../build/three.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var stats, clock;
var scene, camera, renderer, mixer;
Expand Down
8 changes: 6 additions & 2 deletions examples/misc_controls_fly.html
Expand Up @@ -46,7 +46,7 @@
<script src="js/postprocessing/RenderPass.js"></script>
<script src="js/postprocessing/FilmPass.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>

</head>
Expand All @@ -59,7 +59,11 @@

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var radius = 6371;
var tilt = 0.41;
Expand Down
8 changes: 6 additions & 2 deletions examples/misc_controls_map.html
Expand Up @@ -38,13 +38,17 @@

<script src="../build/three.js"></script>
<script src="js/controls/MapControls.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>

<script src='js/libs/dat.gui.min.js'></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var camera, controls, scene, renderer;

Expand Down
8 changes: 6 additions & 2 deletions examples/misc_controls_orbit.html
Expand Up @@ -38,11 +38,15 @@

<script src="../build/three.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var camera, controls, scene, renderer;

Expand Down
8 changes: 6 additions & 2 deletions examples/misc_controls_trackball.html
Expand Up @@ -41,12 +41,16 @@

<script src="js/controls/TrackballControls.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var camera, controls, scene, renderer, stats;

Expand Down
8 changes: 6 additions & 2 deletions examples/misc_exporter_gltf.html
Expand Up @@ -40,7 +40,7 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/loaders/OBJLoader.js"></script>
<script src="js/exporters/GLTFExporter.js"></script>

Expand Down Expand Up @@ -140,7 +140,11 @@

}

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var container;

Expand Down
8 changes: 6 additions & 2 deletions examples/misc_exporter_stl.html
Expand Up @@ -35,12 +35,16 @@
<script src="js/controls/OrbitControls.js"></script>
<script src="js/exporters/STLExporter.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/dat.gui.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var scene, camera, renderer, exporter, mesh;

Expand Down
8 changes: 6 additions & 2 deletions examples/webaudio_orientation.html
Expand Up @@ -67,7 +67,7 @@
</style>

<script src="../build/three.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/loaders/GLTFLoader.js"></script>

Expand All @@ -93,7 +93,11 @@

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var scene, camera, renderer;

Expand Down
8 changes: 6 additions & 2 deletions examples/webaudio_sandbox.html
Expand Up @@ -83,12 +83,16 @@
<script src="../build/three.js"></script>

<script src="js/controls/FirstPersonControls.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/dat.gui.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var camera, controls, scene, renderer;
var light, pointLight;
Expand Down
8 changes: 6 additions & 2 deletions examples/webaudio_timing.html
Expand Up @@ -67,7 +67,7 @@
</style>

<script src="../build/three.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/controls/OrbitControls.js"></script>

</head>
Expand All @@ -87,7 +87,11 @@

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var scene, camera, renderer, audio;

Expand Down
8 changes: 6 additions & 2 deletions examples/webaudio_visualizer.html
Expand Up @@ -67,7 +67,7 @@
</style>

<script src="../build/three.js"></script>
<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>

<script id="vertexShader" type="x-shader/x-vertex">

Expand Down Expand Up @@ -119,7 +119,11 @@

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var scene, camera, renderer, analyser, uniforms;

Expand Down
9 changes: 6 additions & 3 deletions examples/webgl2_materials_texture3d.html
Expand Up @@ -82,13 +82,16 @@
<!--<script src="js/controls/OrbitControls.js"></script>-->

<script src="js/libs/jszip.min.js"></script>

<script src="js/Detector.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/WebGL.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGL2Available() === false ) {

document.body.appendChild( WEBGL.getWebGL2ErrorMessage() );

}

var camera, scene, mesh, renderer, stats;

Expand Down
10 changes: 7 additions & 3 deletions examples/webgl2_materials_texture3d_volume.html
Expand Up @@ -54,13 +54,17 @@
<script src="js/loaders/NRRDLoader.js"></script>
<script src="js/shaders/VolumeShader.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/gunzip.min.js"></script>
<script src="js/libs/dat.gui.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGL2Available() === false ) {

document.body.appendChild( WEBGL.getWebGL2ErrorMessage() );

}

var container,
renderer,
Expand Down Expand Up @@ -159,7 +163,7 @@

var mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );

render();

} );
Expand Down
8 changes: 6 additions & 2 deletions examples/webgl_animation_cloth.html
Expand Up @@ -38,7 +38,7 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/libs/stats.min.js"></script>

Expand Down Expand Up @@ -74,7 +74,11 @@

}

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var container, stats;
var camera, scene, renderer;
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_animation_keyframes.html
Expand Up @@ -44,7 +44,7 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/loaders/DRACOLoader.js"></script>
Expand Down
8 changes: 6 additions & 2 deletions examples/webgl_animation_skinning_blending.html
Expand Up @@ -48,14 +48,18 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/libs/dat.gui.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var container = document.getElementById( 'container' );

Expand Down
1 change: 0 additions & 1 deletion examples/webgl_animation_skinning_morph.html
Expand Up @@ -46,7 +46,6 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/libs/dat.gui.min.js"></script>

Expand Down
8 changes: 6 additions & 2 deletions examples/webgl_buffergeometry.html
Expand Up @@ -35,12 +35,16 @@

<script src="../build/three.js"></script>

<script src="js/Detector.js"></script>
<script src="js/WebGL.js"></script>
<script src="js/libs/stats.min.js"></script>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var container, stats;

Expand Down
14 changes: 9 additions & 5 deletions examples/webgl_buffergeometry_constructed_from_geometry.html
Expand Up @@ -24,17 +24,21 @@
color: #0080ff;
}
</style>
<script type="text/javascript" src="../build/three.js"></script>
<script type="text/javascript" src="js/Detector.js"></script>
<script type="text/javascript" src="js/libs/stats.min.js"></script>
<script type="text/javascript" src="js/controls/TrackballControls.js"></script>
<script src="../build/three.js"></script>
<script src="js/controls/TrackballControls.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/WebGL.js"></script>
</head>
<body>
<div id="info"><a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - buffer geometry constructed from geometry - by <a target="_blank" href="http://callum.com">Callum Prentice</a></div>

<script>

if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
if ( WEBGL.isWebGLAvailable() === false ) {

document.body.appendChild( WEBGL.getWebGLErrorMessage() );

}

var camera, scene, renderer, controls, stats;

Expand Down

0 comments on commit d3f5a0b

Please sign in to comment.