赞
踩
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Three框架</title>
- <script src="../js/Three.js"></script>
- <style type="text/css">
- div#canvas-frame{
- border: none;
- cursor: pointer;
- width: 100%;
- height: 600px;
- background-color: #EEEEEE;
- }
- </style>
- <script>
- //初始化渲染器
- var renderer;
- function initThree() {
- width=document.getElementById('canvas-frame').clientWidth;
- height=document.getElementById('canvas-frame').clientHeight;
- //初始化一个渲染器,开启抗锯齿
- renderer=new THREE.WebGLRenderer({
- antialias:true
- });
- //设置渲染窗口的大小
- renderer.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。