Commit b35d5a2c authored by amandaghassaei's avatar amandaghassaei

small changes

parent f2796c33
......@@ -8,6 +8,17 @@
<link rel="stylesheet" type="text/css" href="dependencies/flat-ui.min.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-86531114-7', 'auto');
ga('send', 'pageview');
</script>
<script id="2d-vertex-shader" type="x-shader/x-vertex">
attribute vec2 a_position;
......
......@@ -215,6 +215,9 @@ function render(){
} else resetWindow();
//move particles
//http://voxelent.com/html/beginners-guide/chapter_10/ch10_PointSprites.html
// gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.DYNAMIC_DRAW);
//http://stackoverflow.com/questions/5497722/how-can-i-animate-an-object-in-webgl-modify-specific-vertices-not-full-transfor
GPU.setSize(particlesTextureDim, particlesTextureDim);
GPU.step("moveParticles", ["particles", "velocity"], "nextParticles");
GPU.step("moveParticles", ["nextParticles", "velocity"], "particles");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment