Made a todo list

This commit is contained in:
Brandon Dyck 2022-10-23 23:40:39 -06:00
parent 6fdd07cc14
commit d818689d4b
2 changed files with 12 additions and 1 deletions

12
TODO.txt Normal file
View File

@ -0,0 +1,12 @@
Make the panning match the cursor
Allow zooming with scroll wheel
Dynamically set a minimum zoom that will keep the edges of the sphere from showing
Automatically create canvas for each marked <img> once it loads, and display:none the <img>
Add a class to the <canvas> for styling
Copy matrix funcs into code
Add licenses
Add instructions
Fix up code locality
Give the uniforms simpler names
Delete the defunct view matrix
Rename the model matrix as the view matrix, because that's really what it is.

View File

@ -212,7 +212,6 @@
gl.uniformMatrix4fv(modelMatrixLocation, false, modelMatrix); gl.uniformMatrix4fv(modelMatrixLocation, false, modelMatrix);
const aspect = gl.drawingBufferWidth / gl.drawingBufferHeight; const aspect = gl.drawingBufferWidth / gl.drawingBufferHeight;
// TODO find a minimum zoom that won't show the edges of the sphere.
const zoom = 4; const zoom = 4;
const projectionMatrix = mat4.ortho(mat4.create(), -aspect / zoom, aspect / zoom, -1 / zoom, 1 / zoom, -1, 1); const projectionMatrix = mat4.ortho(mat4.create(), -aspect / zoom, aspect / zoom, -1 / zoom, 1 / zoom, -1, 1);
gl.uniformMatrix4fv(projectionMatrixLocation, false, projectionMatrix); gl.uniformMatrix4fv(projectionMatrixLocation, false, projectionMatrix);