一条龙,现在应该结尾了,就是和物体做基本的交互。鼠标滑过,物体颜色有变化。。
直接上代码
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<script src="../build/three.js" type="text/javascript" ></script>
<script src="../examples/js/Detector.js" type="text/javascript" ></script>
<script src="../examples/js/loaders/OBJLoader.js" type="text/javascript" ></script>
<style type="text/css">
body{
margin:0;
height:100%;
}
#canvas3d{
margin:0;
border:1px solid red;
min-height: 300px;
/*height:100%; */
box-sizing: content-box;
position: relative;
}
</style>
<style type="text/css">
#progress{
margin:0;
border:1