Skip to content

Instantly share code, notes, and snippets.

@YenTheFirst
Created March 26, 2013 19:10
Show Gist options
  • Save YenTheFirst/5248242 to your computer and use it in GitHub Desktop.
Save YenTheFirst/5248242 to your computer and use it in GitHub Desktop.
incorrect reflections
<!doctype html><title>Minimal tQuery Page</title>
<script src="http://jeromeetienne.github.com/tquery/build/tquery-bundle-require.js"></script>
<script src="http://jeromeetienne.github.com/tquery/plugins/mirror/tquery.mirrorplane.js"></script>
<body><script>
requirejs.config({ baseUrl : "http://www.corsproxy.com/jeromeetienne.github.com/tquery/plugins/requirejs/examples/" })
require([ 'tquery.skymap'
, 'tquery.grassground'
, 'tquery.minecraft'
, 'tquery.objectcoord'
], function(){
world = tQuery.createWorld().boilerplate().defaultPageTitle().start();
world.tCamera().position.z=2;
//////////////////////////////////////////////////////////////////////////////////
// comment //
//////////////////////////////////////////////////////////////////////////////////
tQuery.createSkymap('bridge2').addTo(world);
torusKnot = tQuery.createTorusKnot().addTo(world).position(new THREE.Vector3( 0, 0, 20));
world.hook(function(delta, now){
var angle = 0.3 * now*Math.PI*2;
torusKnot.positionZ( 10 + 10* Math.sin(angle) )
})
//////////////////////////////////////////////////////////////////////////////////
// comment //
//////////////////////////////////////////////////////////////////////////////////
mirror = tQuery.createMirrorPlane().addTo(world);
mirror2 = tQuery.createMirrorPlane().addTo(world).rotateY(1.5*3.14159).position(new THREE.Vector3(0.5,0,0.5));
})
</script></body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment