Pārlūkot izejas kodu

Examples: Removed webgl_trails.

Mr.doob 2 gadi atpakaļ
vecāks
revīzija
502183211c

+ 1 - 2
docs/api/en/materials/PointsMaterial.html

@@ -45,8 +45,7 @@
 			[example:webgl_multiple_elements_text WebGL / multiple / elements / text]<br />
 			[example:webgl_points_billboards WebGL / points / billboards]<br />
 			[example:webgl_points_dynamic WebGL / points / dynamic]<br />
-			[example:webgl_points_sprites WebGL / points / sprites]<br />
-			[example:webgl_trails WebGL / trails]
+			[example:webgl_points_sprites WebGL / points / sprites]
 		</p>
 
 		<h2>Constructor</h2>

+ 1 - 2
docs/api/fr/materials/PointsMaterial.html

@@ -50,8 +50,7 @@
 			[example:webgl_multiple_elements_text WebGL / multiple / elements / text]<br />
 			[example:webgl_points_billboards WebGL / points / billboards]<br />
 			[example:webgl_points_dynamic WebGL / points / dynamic]<br />
-			[example:webgl_points_sprites WebGL / points / sprites]<br />
-			[example:webgl_trails WebGL / trails]
+			[example:webgl_points_sprites WebGL / points / sprites]
 		</p>
 
 		<h2>Constructeur</h2>

+ 1 - 2
docs/api/it/materials/PointsMaterial.html

@@ -50,8 +50,7 @@
 			[example:webgl_multiple_elements_text WebGL / multiple / elements / text]<br />
 			[example:webgl_points_billboards WebGL / points / billboards]<br />
 			[example:webgl_points_dynamic WebGL / points / dynamic]<br />
-			[example:webgl_points_sprites WebGL / points / sprites]<br />
-			[example:webgl_trails WebGL / trails]
+			[example:webgl_points_sprites WebGL / points / sprites]
 		</p>
 
 		<h2>Costruttore</h2>

+ 1 - 2
docs/api/zh/materials/PointsMaterial.html

@@ -51,8 +51,7 @@
 			[example:webgl_multiple_elements_text WebGL / multiple / elements / text]<br />
 			[example:webgl_points_billboards WebGL / points / billboards]<br />
 			[example:webgl_points_dynamic WebGL / points / dynamic]<br />
-			[example:webgl_points_sprites WebGL / points / sprites]<br />
-			[example:webgl_trails WebGL / trails]
+			[example:webgl_points_sprites WebGL / points / sprites]
 		</p>
 
 		<h2>[name]( [param:Object parameters] )</h2>

+ 0 - 1
examples/files.json

@@ -222,7 +222,6 @@
 		"webgl_test_memory",
 		"webgl_test_memory2",
 		"webgl_tonemapping",
-		"webgl_trails",
 		"webgl_video_kinect",
 		"webgl_video_panorama_equirectangular",
 		"webgl_water",

BIN
examples/screenshots/webgl_trails.jpg


+ 0 - 119
examples/webgl_trails.html

@@ -1,119 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<title>three.js webgl - trails</title>
-		<meta charset="utf-8">
-		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-		<link type="text/css" rel="stylesheet" href="main.css">
-	</head>
-	<body>
-		<!-- Import maps polyfill -->
-		<!-- Remove this when import maps will be widely supported -->
-		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
-
-		<script type="importmap">
-			{
-				"imports": {
-					"three": "../build/three.module.js",
-					"three/addons/": "./jsm/"
-				}
-			}
-		</script>
-
-		<script type="module">
-
-			import * as THREE from 'three';
-
-			import Stats from 'three/addons/libs/stats.module.js';
-
-			let stats;
-
-			let camera, scene, renderer, clock;
-
-			init();
-			animate();
-
-			function init() {
-
-				const container = document.createElement( 'div' );
-				document.body.appendChild( container );
-
-				camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 0.1, 10 );
-				camera.position.set( 0, 0, 1 );
-
-				clock = new THREE.Clock();
-
-				scene = new THREE.Scene();
-
-				const colorArray = [ new THREE.Color( 0xff0080 ), new THREE.Color( 0xffffff ), new THREE.Color( 0x8000ff ) ];
-				const positions = [];
-				const colors = [];
-
-				for ( let i = 0; i < 100; i ++ ) {
-
-					positions.push( Math.random() - 0.5, Math.random() - 0.5, Math.random() - 0.5 );
-
-					const clr = colorArray[ Math.floor( Math.random() * colorArray.length ) ];
-
-					colors.push( clr.r, clr.g, clr.b );
-
-				}
-
-				const geometry = new THREE.BufferGeometry();
-				geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( positions, 3 ) );
-				geometry.setAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
-
-				const material = new THREE.PointsMaterial( { size: 4, vertexColors: true, depthTest: false, sizeAttenuation: false } );
-
-				const mesh = new THREE.Points( geometry, material );
-				scene.add( mesh );
-
-				renderer = new THREE.WebGLRenderer( { preserveDrawingBuffer: true } );
-				renderer.setPixelRatio( window.devicePixelRatio );
-				renderer.setSize( window.innerWidth, window.innerHeight );
-				renderer.autoClearColor = false;
-				container.appendChild( renderer.domElement );
-
-				stats = new Stats();
-				container.appendChild( stats.dom );
-
-				//
-
-				window.addEventListener( 'resize', onWindowResize );
-
-			}
-
-			function onWindowResize() {
-
-				camera.aspect = window.innerWidth / window.innerHeight;
-				camera.updateProjectionMatrix();
-
-				renderer.setSize( window.innerWidth, window.innerHeight );
-
-			}
-
-			//
-
-			function animate() {
-
-				requestAnimationFrame( animate );
-
-				render();
-				stats.update();
-
-			}
-
-			function render() {
-
-				const elapsedTime = clock.getElapsedTime();
-
-				scene.rotation.y = elapsedTime * 0.5;
-
-				renderer.render( scene, camera );
-
-			}
-
-		</script>
-
-	</body>
-</html>