diff --git a/index.html b/index.html index ff887c5..2f1560e 100644 --- a/index.html +++ b/index.html @@ -23,94 +23,133 @@ width: 100%; display: block; } - + #demo{ + width: 100px; + height: 50px; + position: absolute; + } + + +
- - + }, false) + + //测试 + // const bufferGeo = new THREE.CircleGeometry( 5, 32 ) + // const test1 = new FlyLine(bufferGeo,{ + // color: 0xff0000, + // alphaTest: false + // }) + // test1.position.set(10, 10, 10) + // scene.add(test1) + + //测试 + // const Geo = new THREE.TorusKnotGeometry( 10, 3, 100, 16 ) + // const test2 = new FlyLine(Geo,{ + // color: 0x0099FF, + // segFlag: true, + // alphaTest: false + // }) + // test2.position.set(-10, -10, -10) + // scene.add(test2) + + const render = () => { + renderer.render(scene, camera) + requestAnimationFrame(render) + test && test.update() + } + render() + + + \ No newline at end of file