当前位置:   article > 正文

three.js画线_three鼠标画不规则路径

three鼠标画不规则路径

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Three框架</title>
  6. <script src="../js/Three.js"></script>
  7. <style type="text/css">
  8. div#canvas-frame{
  9. border: none;
  10. cursor: pointer;
  11. width: 100%;
  12. height: 600px;
  13. background-color: #EEEEEE;
  14. }
  15. </style>
  16. <script>
  17. //初始化渲染器
  18. var renderer;
  19. function initThree() {
  20. width=document.getElementById('canvas-frame').clientWidth;
  21. height=document.getElementById('canvas-frame').clientHeight;
  22. //初始化一个渲染器,开启抗锯齿
  23. renderer=new THREE.WebGLRenderer({
  24. antialias:true
  25. });
  26. //设置渲染窗口的大小
  27. renderer.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/84962
推荐阅读
相关标签
  

闽ICP备14008679号