Pendulum: Cleanup extraneous code
This commit is contained in:
		@@ -14,7 +14,8 @@ const vertex_shader = `
 | 
				
			|||||||
   {
 | 
					   {
 | 
				
			||||||
      gl_Position = u_ModelMatrix * a_Position;
 | 
					      gl_Position = u_ModelMatrix * a_Position;
 | 
				
			||||||
      gl_PointSize = 5.0;
 | 
					      gl_PointSize = 5.0;
 | 
				
			||||||
   }	`;
 | 
					   }
 | 
				
			||||||
 | 
					`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const fragment_shader = `
 | 
					const fragment_shader = `
 | 
				
			||||||
@@ -23,9 +24,8 @@ const fragment_shader = `
 | 
				
			|||||||
   void main()
 | 
					   void main()
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      gl_FragColor = u_Color;
 | 
					      gl_FragColor = u_Color;
 | 
				
			||||||
   }	`;
 | 
					   }
 | 
				
			||||||
 | 
					`;
 | 
				
			||||||
var SIDES_DELTA = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
function main() {
 | 
					function main() {
 | 
				
			||||||
   // Retrieve <canvas> element
 | 
					   // Retrieve <canvas> element
 | 
				
			||||||
@@ -45,7 +45,7 @@ function main() {
 | 
				
			|||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   // create a pendulum object
 | 
					   // 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);
 | 
					   pendulum.init(gl);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   // Specify the color for clearing <canvas>
 | 
					   // Specify the color for clearing <canvas>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user