<!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.
three.js画线
最新推荐文章于 2024-01-04 16:41:17 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)