topical media & game development
mobile-query-three-plugins-lavamaterial-examples-index.htm / htm
<!doctype html><title>Minimal tQuery Page</title>
<script src="../../../build/tquery-bundle.js"></script>
<script src="../tquery.lavamaterial.js"></script>
<script src="../../../vendor/three.js/postprocessing/EffectComposer.js"></script>
<script src="../../../vendor/three.js/postprocessing/BloomPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/DotScreenPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/FilmPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/MaskPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/RenderPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/SavePass.js"></script>
<script src="../../../vendor/three.js/postprocessing/ShaderPass.js"></script>
<script src="../../../vendor/three.js/postprocessing/TexturePass.js"></script>
<script src="../../../vendor/three.js/shaders/BleachBypassShader.js"></script>
<script src="../../../vendor/three.js/shaders/BlendShader.js"></script>
<script src="../../../vendor/three.js/shaders/CopyShader.js"></script>
<script src="../../../vendor/three.js/shaders/ColorifyShader.js"></script>
<script src="../../../vendor/three.js/shaders/ConvolutionShader.js"></script>
<script src="../../../vendor/three.js/shaders/FilmShader.js"></script>
<script src="../../../vendor/three.js/shaders/FXAAShader.js"></script>
<script src="../../../vendor/three.js/shaders/HorizontalBlurShader.js"></script>
<script src="../../../vendor/three.js/shaders/SepiaShader.js"></script>
<script src="../../../vendor/three.js/shaders/VerticalBlurShader.js"></script>
<script src="../../../vendor/three.js/shaders/VignetteShader.js"></script>
<script src="../../pproc/tquery.effectcomposer.js"></script>
<body><div id="info" style="color: white;">
<a href="http://jeromeetienne.github.com/tquery/" target="_blank">tQuery</a>
- shader material demo
- featuring lava shader by
<a href="http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=21057" target="_blank">TheGameMaker</a>
</div><script>
var world = tQuery.createWorld().boilerplate().pageTitle('#info').start();
world.tRenderer().setClearColorHex( 0x000000, 1 );
world.removeCameraControls();
world.addEffectComposer().bloom(1.25).film(0.35, 0.95, 2048, false).finish();
var object3d = tQuery.createTorusKnot().addTo(world)
.scale(1.5)
.setLavaMaterial();
world.loop().hook(function(delta, now){
var angle = 1/20 * now * Math.PI * 2;
object3d.get(0).rotation.x = angle*1.13;
object3d.get(0).rotation.y = angle*0.5;
});
</script></body>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.