瀏覽代碼

Improved teapot example.

Mr.doob 10 年之前
父節點
當前提交
ab47d67cfc
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 1 1
      examples/index.html
  2. 7 7
      examples/webgl_geometry_teapot.html

+ 1 - 1
examples/index.html

@@ -219,6 +219,7 @@
 				"webgl_geometry_nurbs",
 				"webgl_geometry_shapes",
 				"webgl_geometry_spline_editor",
+				"webgl_geometry_teapot",
 				"webgl_geometry_terrain",
 				"webgl_geometry_terrain_fog",
 				"webgl_geometry_terrain_raycast",
@@ -381,7 +382,6 @@
 				"webgl_buffergeometry_lines_indexed",
 				"webgl_buffergeometry_particles",
 				"webgl_buffergeometry_rawshader",
-				"webgl_buffergeometry_teapot",
 				"webgl_buffergeometry_uint",
 				"webgl_custom_attributes",
 				"webgl_custom_attributes_lines",

+ 7 - 7
examples/webgl_buffergeometry_teapot.html → examples/webgl_geometry_teapot.html

@@ -18,12 +18,11 @@
 			}
 
 			#info {
-				position: relative;
-				margin: 0 auto -2.1em;
-				top: 0px;
-				width: 550px;
-				padding: 5px;
-				z-index:100;
+				position: absolute;
+				padding: 10px;
+				width: 100%;
+				text-align: center;
+				color: #fff;
 			}
 
 			a { color: blue; }
@@ -32,7 +31,8 @@
 	</head>
 	<body>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank">three.js</a> - the Utah Teapot from the <a href="https://www.udacity.com/course/interactive-3d-graphics--cs291">Udacity Interactive 3D Graphics course</a>
+			<a href="http://threejs.org" target="_blank">three.js</a> - the Utah Teapot<br />
+			from <a href="https://www.udacity.com/course/interactive-3d-graphics--cs291">Udacity Interactive 3D Graphics</a>
 		</div>
 
 		<script src="../build/three.min.js"></script>