Pendulum: Cleanup extraneous code
This commit is contained in:
parent
66d7698a98
commit
4ef962dc35
@ -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 <canvas> 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 <canvas>
|
||||
|
Loading…
Reference in New Issue
Block a user