Skip to content

JaHRSe/GPURotation2d

Repository files navigation

GPURotation2d

Exploring techniques to rotate models in 2d

Building an intuitive understanding of how the GPU works and the math behind it. This code explores several techniques for rotating a 2D model including

  1. Calculating a rotation matrix in JavaScript
  2. Calculating the rotation matrix with GLSL in the GPU
  3. Using complex numbers to calculate rotation in Javascript.

References: Code draws from the following references https://webgl2fundamentals.org/ https://archive.org/details/3d-math-primer-for-graphics-and-game-development-2e/mode/1up


To Run


  1. In directory containing package.json, execute 'npm install'
  2. After dependencies install execute 'npm start'

About

Exploring techniques to rotate models in 2d

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published