Permalink
Browse files

Changes from ImagineRIT.

  • Loading branch information...
1 parent f6229da commit b514e28b505cd7525ec063b2730b1d9e1a7448d8 @OneGeek committed May 5, 2010
@@ -10,6 +10,7 @@
$W.camera.setPosition(-2,0,17);
$W.camera.setTarget(1,1,0);
$W.camera.yfov = 90;
+ $W.camera.aspectRatio = 1;
return true;
}
@@ -50,7 +51,7 @@
* boids, where the first argument is the number of boids and
* the second is the model to use for each.
*/
- return new $W.OS.Flock(40, boid);
+ return new $W.OS.Flock(30, boid);
}
function start() {
@@ -68,6 +69,7 @@
}
</script> </head>
<body onload='start()'>
+<h1><strong>Boids</strong></h1> behavioral simulation in WebGL using WebGLU
<div id="glCanvas"> <div id="overlay"></div>
<canvas id='canvas' width='500' height='500'></canvas><br>
</div>
@@ -0,0 +1,14 @@
+{
+ name: "animated_canvas",
+ program: {
+ name: "animated_canvas" ,
+ shaders: [
+ {name:"textured_vs", path:$W.paths.shaders+"wglu_texture.vert"},
+ {name:"textured_fs", path:$W.paths.shaders+"wglu_texture.frag"}
+ ]
+ },
+
+ textures: [
+ {name:"animated_canvas", type:"Canvas", element_id:"text"}
+ ]
+}
View
@@ -0,0 +1,14 @@
+{
+ name: "check",
+ program: {
+ name: "wglu_textured" ,
+ shaders: [
+ {name:"textured_vs", path:$W.paths.shaders+"wglu_texture.vert"},
+ {name:"textured_fs", path:$W.paths.shaders+"wglu_texture.frag"}
+ ]
+ },
+
+ textures: [
+ {name:"check", type:"Image", path:$W.paths.textures+"check.png"}
+ ]
+}
@@ -0,0 +1,10 @@
+{
+ name: "wglu_default",
+ program: {
+ name: "default" ,
+ shaders: [
+ {name:"wglu_default_vs", path:$W.paths.shaders+"default.vert"},
+ {name:"wglu_default_fs", path:$W.paths.shaders+"default.frag"}
+ ]
+ }
+}
@@ -0,0 +1,14 @@
+{
+ name: "green_tiger",
+ program: {
+ name: "wglu_textured" ,
+ shaders: [
+ {name:"textured_vs", path:$W.paths.shaders+"wglu_texture.vert"},
+ {name:"textured_fs", path:$W.paths.shaders+"wglu_texture.frag"}
+ ]
+ },
+
+ textures: [
+ {name:"green_tiger", type:"Image", path:$W.paths.textures + "tiger.png"}
+ ]
+}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b514e28

Please sign in to comment.