Explorar el Código

Merge pull request #7615 from paulmasson/dev

Minor improvements to documentation and examples
Mr.doob hace 9 años
padre
commit
00a565d493

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

@@ -56,7 +56,7 @@
 			[example:webgl_interactive_cubes_ortho Raycasting to a Mesh in using an OrthographicCamera], 
 			[example:webgl_interactive_buffergeometry Raycasting to a Mesh with BufferGeometry], 
 			[example:webgl_interactive_lines Raycasting to a Line], 
-			[example:webgl_interactive_raycasting_pointcloud Raycasting to a Points], 
+			[example:webgl_interactive_raycasting_points Raycasting to Points], 
 			[example:webgl_geometry_terrain_raycast Terrain raycasting], 
 			[example:webgl_octree_raycasting Raycasting using an octree],
 			[example:webgl_interactive_voxelpainter Raycasting to paint voxels]</div>

+ 2 - 0
docs/api/renderers/WebGLRenderer.html

@@ -178,6 +178,8 @@
 
 		<h3>[method:null setScissor]( [page:Integer x], [page:Integer y], [page:Integer width], [page:Integer height] )</h3>
 		<div>Sets the scissor area from (x, y) to (x + width, y + height).</div>
+		
+		<div>NOTE: The point (x, y) is the lower left corner of the area to be set for both of these methods. The area is defined from left to right in width but bottom to top in height. The sense of the vertical definition is opposite to the fill direction of an HTML canvas element.</div>
 
 		<h3>[method:null enableScissorTest]( [page:Boolean enable] )</h3>
 		<div>Enable the scissor test. When this is enabled, only the pixels within the defined scissor area will be affected by further renderer actions.</div>

+ 2 - 2
examples/webgl_interactive_raycasting_points.html

@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="en">
 	<head>
-		<title>three.js webgl - interactive - raycasting - pointcloud</title>
+		<title>three.js webgl - interactive - raycasting - points</title>
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
 		<style>
@@ -29,7 +29,7 @@
 
 	<body>
 		<div id="container"></div>
-		<div id="info"><a href="http://threejs.org" target="_blank">three.js</a> webgl - interactive - raycasting - pointcloud </div>
+		<div id="info"><a href="http://threejs.org" target="_blank">three.js</a> webgl - interactive - raycasting - points </div>
 
 		<script src="../build/three.min.js"></script>
 

+ 1 - 3
examples/webgl_multiple_elements.html

@@ -87,7 +87,7 @@
 
 			var canvas;
 
-			var scenes = [], camera, renderer, emptyScene;
+			var scenes = [], camera, renderer;
 
 			init();
 			animate();
@@ -109,8 +109,6 @@
 				var template = document.getElementById("template").text;
 				var content = document.getElementById("content");
 
-				var emptyScene = new THREE.Scene();
-
 				for ( var i =  0; i < 100; i ++ ) {
 
 					var scene = new THREE.Scene();