css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

This experiment has 10000 cubes that transition on the Y axis while also having the camera move in a circle on the X and Z axis.

Fun fact: 1 cube = 12 triangles = 36 vertices

Comments

  1. How come it doesn't lag (I don't know too much about WebGL, just a few basics)?

  2. @Chrisstar the reason why it's smooth is because it uses the GPU for the calculations. At first the attributes are stored in the GPU buffer once (position and color), after that only the progress uniform is updated on every frame (which the movement and cube transitions are based on)! :)

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...
Loading...