|
|
@ -192,13 +192,13 @@
|
|
192
|
192
|
|
|
193
|
193
|
gl.uniform4f(program.color, -1, -1, -1, 0);
|
|
194
|
194
|
|
|
195
|
|
angle.x += Math.PI / 10;
|
|
196
|
|
angle.y += Math.PI / 10;
|
|
197
|
|
angle.z += Math.PI / 10;
|
|
|
195
|
//angle.x += Math.PI / 10;
|
|
|
196
|
//angle.y += Math.PI / 10;
|
|
|
197
|
//angle.z += Math.PI / 10;
|
|
198
|
198
|
|
|
199
|
|
offset.x = Math.sin(angle.x * 0.1);
|
|
200
|
|
offset.y = Math.sin(angle.y * 0.1);
|
|
201
|
|
offset.z = Math.cos(angle.z * 0.1) * 2;
|
|
|
199
|
//offset.x = Math.sin(angle.x * 0.1);
|
|
|
200
|
//offset.y = Math.sin(angle.y * 0.1);
|
|
|
201
|
//offset.z = Math.cos(angle.z * 0.1) * 2;
|
|
202
|
202
|
}
|
|
203
|
203
|
|
|
204
|
204
|
trixl.step = function() {
|