Pārlūkot izejas kodu

Renamed some raycaster examples. (#24280)

mrdoob 3 gadi atpakaļ
vecāks
revīzija
fbf7c1bca5

+ 1 - 1
docs/api/en/core/Raycaster.html

@@ -65,7 +65,7 @@
 			[example:webgl_interactive_raycasting_points Raycasting to Points]<br />
 			[example:webgl_geometry_terrain_raycast Terrain raycasting]<br />
 			[example:webgl_interactive_voxelpainter Raycasting to paint voxels]<br />
-			[example:webgl_raycast_texture Raycast to a Texture]
+			[example:webgl_raycaster_texture Raycast to a Texture]
 		</p>
 
 		<h2>Constructor</h2>

+ 1 - 1
docs/api/en/materials/SpriteMaterial.html

@@ -26,7 +26,7 @@
 
 		<h2>Examples</h2>
 		<p>
-			[example:webgl_raycast_sprite WebGL / raycast / sprite]<br />
+			[example:webgl_raycaster_sprite WebGL / raycast / sprite]<br />
 			[example:webgl_sprites WebGL / sprites]<br />
 			[example:svg_sandbox SVG / sandbox]
 		</p>

+ 1 - 1
docs/api/ko/core/Raycaster.html

@@ -64,7 +64,7 @@
 			[example:webgl_interactive_raycasting_points Raycasting to Points]<br />
 			[example:webgl_geometry_terrain_raycast Terrain raycasting]<br />
 			[example:webgl_interactive_voxelpainter Raycasting to paint voxels]<br />
-			[example:webgl_raycast_texture Raycast to a Texture]
+			[example:webgl_raycaster_texture Raycast to a Texture]
 		</p>
 
 		<h2>생성자</h2>

+ 1 - 1
docs/api/zh/core/Raycaster.html

@@ -62,7 +62,7 @@
 			[example:webgl_interactive_raycasting_points Raycasting to Points]<br />
 			[example:webgl_geometry_terrain_raycast Terrain raycasting]<br />
 			[example:webgl_interactive_voxelpainter Raycasting to paint voxels]<br />
-			[example:webgl_raycast_texture Raycast to a Texture]
+			[example:webgl_raycaster_texture Raycast to a Texture]
 		</p>
 
 

+ 1 - 1
docs/api/zh/materials/SpriteMaterial.html

@@ -26,7 +26,7 @@
 
 		<h2>例子</h2>
 		<p>
-			[example:webgl_raycast_sprite WebGL / raycast / sprite]<br />
+			[example:webgl_raycaster_sprite WebGL / raycast / sprite]<br />
 			[example:webgl_sprites WebGL / sprites]<br />
 			[example:svg_sandbox SVG / sandbox]
 		</p>

+ 3 - 3
examples/files.json

@@ -196,9 +196,9 @@
 		"webgl_points_sprites",
 		"webgl_points_waves",
 		"webgl_portal",
-		"webgl_raycast_sprite",
-		"webgl_raycast_texture",
-		"webgl_raycasting_bvh",
+		"webgl_raycaster_bvh",
+		"webgl_raycaster_sprite",
+		"webgl_raycaster_texture",
 		"webgl_read_float_buffer",
 		"webgl_refraction",
 		"webgl_rtt",

+ 0 - 0
examples/screenshots/webgl_raycasting_bvh.jpg → examples/screenshots/webgl_raycaster_bvh.jpg


+ 0 - 0
examples/screenshots/webgl_raycast_sprite.jpg → examples/screenshots/webgl_raycaster_sprite.jpg


+ 0 - 0
examples/screenshots/webgl_raycast_texture.jpg → examples/screenshots/webgl_raycaster_texture.jpg


+ 2 - 2
examples/tags.json

@@ -88,6 +88,7 @@
 	"webgl_postprocessing_unreal_bloom_selective": [ "glow" ],
 	"webgl_postprocessing_3dlut": [ "color grading" ],
 	"webgl_materials_modified": [ "onBeforeCompile" ],
+	"webgl_raycaster_bvh": [ "three-mesh-bvh", "query", "bounds", "tree", "accelerate", "performance", "community", "extension", "plugin", "library" ],
 	"webgl_shadowmap_csm": [ "cascade" ],
 	"webgl_shadowmap_pcss": [ "soft" ],
 	"webgl_simple_gi": [ "global illumination" ],
@@ -100,6 +101,5 @@
 	"misc_controls_map": [ "drag" ],
 	"misc_controls_orbit": [ "rotation" ],
 	"misc_controls_trackball": [ "rotation" ],
-	"misc_controls_transform": [ "scale", "rotate", "translate" ],
-	"webgl_raycasting_bvh": [ "three-mesh-bvh", "query", "bounds", "tree", "accelerate", "performance", "community", "extension", "plugin", "library" ]
+	"misc_controls_transform": [ "scale", "rotate", "translate" ]
 }

+ 7 - 6
examples/webgl_raycasting_bvh.html → examples/webgl_raycaster_bvh.html

@@ -1,12 +1,13 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>three-mesh-bvh - raycasting - bvh</title>
+		<title>three.js raycaster - bvh</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">
 		<style>
 			body {
+				background-color: #eeeeee;
 				color: #333;
 			}
 
@@ -19,7 +20,7 @@
 
 	<body>
 		<div id="info">
-			<a href="https://github.com/gkjohnson/three-mesh-bvh" target="_blank" rel="noopener">three-mesh-bvh</a> accelerated raycasting demo<br/>
+			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> raycaster - <a href="https://github.com/gkjohnson/three-mesh-bvh" target="_blank" rel="noopener">three-mesh-bvh</a><br/>
 			See <a href="https://github.com/gkjohnson/three-mesh-bvh" target="_blank" rel="noopener">main project repository</a> for more information and examples on high performance spatial queries.
 		</div>
 
@@ -143,7 +144,7 @@
 					helper = new MeshBVHVisualizer( mesh );
 					helper.color.set( 0xE91E63 );
 					scene.add( helper );
-					
+
 				} );
 
 				controls = new OrbitControls( camera, renderer.domElement );
@@ -158,7 +159,7 @@
 					mesh.geometry.boundsTree = v ? bvh : null;
 
 				} );
-				
+
 				const helperFolder = gui.addFolder( 'BVH Helper' );
 				helperFolder.add( params, 'displayHelper' );
 				helperFolder.add( params, 'helperDepth', 1, 20, 1 ).onChange( v => {
@@ -214,7 +215,7 @@
 						Math.sin( i * 1 + offset ),
 					).normalize();
 					_position.applyAxisAngle( _axis, 0.001 );
-					
+
 					// update the position
 					_scale.setScalar( 0.02 );
 					_matrix.compose( _position, _quaternion, _scale );
@@ -244,7 +245,7 @@
 						lineSegments.geometry.attributes.position.setXYZ( lineNum ++, 0, 0, 0 );
 
 					}
-					
+
 				}
 
 				sphereInstance.count = rayCount * 2;

+ 2 - 3
examples/webgl_raycast_sprite.html → examples/webgl_raycaster_sprite.html

@@ -1,8 +1,7 @@
-
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>three.js webgl - raycast - sprite</title>
+		<title>three.js raycaster - sprite</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">
@@ -17,7 +16,7 @@
 		</style>
 	</head>
 <body>
-	<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - webgl raycast sprite<br></div>
+	<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> raycaster - sprite<br></div>
 
 	<!-- Import maps polyfill -->
 	<!-- Remove this when import maps will be widely supported -->

+ 2 - 2
examples/webgl_raycast_texture.html → examples/webgl_raycaster_texture.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>three.js raycast - texture</title>
+		<title>three.js raycaster - texture</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">
@@ -19,7 +19,7 @@
 	<body>
 		<div id="container"></div>
 		<div id="info">
-			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - raycast texture
+			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> raycaster - texture
 		</div>
 
 		<!-- Import maps polyfill -->