[关闭]
@gnat-xj 2017-03-06T10:37:12.000000Z 字数 965 阅读 1629

Three.js 代码片段

一些不错的参考链接

HTML, JS, CSS

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>TITLE</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <style>
  8. </style>
  9. </head>
  10. <body>
  11. </body>
  12. </html>
  1. body {
  2. color: #808080;
  3. font-family: Monospace;
  4. font-size: 13px;
  5. text-align: center;
  6. background-color: #000;
  7. margin: 0px;
  8. padding: 0px;
  9. overflow: hidden;
  10. }
  11. #logDiv {
  12. position: absolute;
  13. top: 0px; width: 100%;
  14. padding: 5px;
  15. z-index: 100;
  16. }

Three.js

  1. cameraPerspective = new THREE.PerspectiveCamera( 50, 0.5 * aspect, 150, 1000 );
  2. cameraPerspectiveHelper = new THREE.CameraHelper( cameraPerspective );
  3. scene.add( cameraPerspectiveHelper );
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注