摘要: threejs translateOnAxis理解 var axis = new THREE.Vector3(1,22,0);//向量axis // mesh.translateOnAxis(axis,300);//沿着axis轴表示方向平移300 注意这个地方要乘以向量的 300是对于1 阅读全文
posted @ 2021-01-25 16:00 newmiracle宇宙 阅读(1012) 评论(0) 推荐(0)
摘要: threejs 正交视图详解 用正交就是因为能更好的用像素 canvaswidth = 750; canvasheight = 1206; renderer = new THREE.WebGLRenderer({ alpha: true }); renderer.setSize(canvaswidt 阅读全文
posted @ 2021-01-25 14:18 newmiracle宇宙 阅读(998) 评论(0) 推荐(0)
摘要: css3 font-spider压缩自定义字体的方法 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>微信授权</title> <style type="text/css"> .ew { font-family: myFirst 阅读全文
posted @ 2021-01-25 12:09 newmiracle宇宙 阅读(256) 评论(0) 推荐(0)
摘要: threejs 透明贴图的方法 function init() { //设置渲染窗口的大小 var canvaswidth=window.innerWidth; var canvasheight=window.innerHeight; renderer = new THREE.WebGLRender 阅读全文
posted @ 2021-01-25 10:06 newmiracle宇宙 阅读(2439) 评论(0) 推荐(0)