From 547b89b9eb36e2562c8ac4e626704cc5a01c7023 Mon Sep 17 00:00:00 2001 From: Jerome Etienne Date: Mon, 6 Mar 2017 09:44:25 +0000 Subject: [PATCH] more work --- three.js/examples/refraction.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/three.js/examples/refraction.html b/three.js/examples/refraction.html index 659e927..c288f82 100644 --- a/three.js/examples/refraction.html +++ b/three.js/examples/refraction.html @@ -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 -- GitLab