18 lines
739 B
Plaintext
18 lines
739 B
Plaintext
Make the panning match the cursor
|
|
Allow zooming with scroll wheel
|
|
Enforce a minimum zoom that will keep the edges of the sphere from showing
|
|
This probably just needs simple math with the aspect and/or the viewport's diagonal length.
|
|
Choose a pleasant initial zoom
|
|
Add data- attribute for minimum zoom
|
|
Add data- attribute for starting angle
|
|
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.
|
|
Consider better names for the angle variables
|