第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

three.js 中的 requestAnimationFrame

three.js 中的 requestAnimationFrame

郎朗坤 2018-11-09 14:11:00
http://www.ituring.com.cn/art... 我在上面這個網(wǎng)站上看到 這樣寫function draw() {mesh.rotation.y = (mesh.rotation.y + 0.01) % (Math.PI * 2); renderer.render(scene, camera); id = requestAnimationFrame(draw);}想問下 mesh 怎么來的 ,需要 var mesh = new THREE.Mesh( geometry, material ); 么;然后我在自己地方function render() {requestAnimationFrame(render);mesh.rotation.y += 0.01;renderer.render(scene, camera);}也沒定義 mesh ;瀏覽器報錯 mesh is not defined;但是動畫還是會進行;想請問下這個報錯怎么解決
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1052 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號