diff --git a/Pendulum/Pendulum.js b/Pendulum/Pendulum.js index 3b6dad5..2877493 100644 --- a/Pendulum/Pendulum.js +++ b/Pendulum/Pendulum.js @@ -14,7 +14,8 @@ const vertex_shader = ` { gl_Position = u_ModelMatrix * a_Position; gl_PointSize = 5.0; - } `; + } +`; const fragment_shader = ` @@ -23,9 +24,8 @@ const fragment_shader = ` void main() { gl_FragColor = u_Color; - } `; - -var SIDES_DELTA = 0; + } +`; function main() { // Retrieve element @@ -45,7 +45,7 @@ function main() { } // create a pendulum object - var pendulum = new Pendulum({ angle: 0, length: PEN_LENGTH, radius: BOB_RADIUS }); + var pendulum = new Pendulum({ length: PEN_LENGTH, radius: BOB_RADIUS }); pendulum.init(gl); // Specify the color for clearing