提交 547b89b9 编写于 作者: J Jerome Etienne

more work

上级 f80f2afe
......@@ -168,6 +168,7 @@ void main(void) {
// add an object in the scene
//////////////////////////////////////////////////////////////////////////////////
;(function(){
var refractMaterial = new THREE.ShaderMaterial( {
uniforms: {
texture: { type: 't', value: new THREE.VideoTexture(arToolkitSource.domElement) },
......@@ -192,9 +193,11 @@ void main(void) {
markerRoot.add( mesh );
// onRenderFcts.push(function(){
// mesh.rotation.x += 0.02;
// })
onRenderFcts.push(function(){
mesh.rotation.z += 0.02;
})
})()
//////////////////////////////////////////////////////////////////////////////////
// render the whole thing on the page
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册