diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..6777221 --- /dev/null +++ b/TODO.txt @@ -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 once it loads, and display:none the +Add a class to the 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. diff --git a/panorama-viewer.js b/panorama-viewer.js index 96839dd..7212843 100644 --- a/panorama-viewer.js +++ b/panorama-viewer.js @@ -212,7 +212,6 @@ gl.uniformMatrix4fv(modelMatrixLocation, false, modelMatrix); const aspect = gl.drawingBufferWidth / gl.drawingBufferHeight; - // TODO find a minimum zoom that won't show the edges of the sphere. const zoom = 4; const projectionMatrix = mat4.ortho(mat4.create(), -aspect / zoom, aspect / zoom, -1 / zoom, 1 / zoom, -1, 1); gl.uniformMatrix4fv(projectionMatrixLocation, false, projectionMatrix);