The following books are useful for one reason or another:
The standard API for interacting with graphics hardware is a set of libraries called OpenGL, along with a special language called GLSL that is used for the programmable portions of the GPU. (And of course, Microsoft has its own incompatible version of the same things, known as DirectX and HLSL.)
Rather than writing code directly in C or C++, we will be using WebGL, the JavaScript bindings for OpenGL that allow 3D rendering to take place in an html canvas element. The programmable "shader" code for the GPU will still be written in GLSL. WebGL is really the same as OpenGL ES 2.0, which is roughly comparable to OpenGL 3 with the deprecated stuff all removed and some fancy features left out, so we'll still be learning OpenGL.
The virtue of this approach is that we eliminate all the platform dependence, GPU driver configuration issues, and linkage of external dlls. We have to deal with JavaScript, but we used WebGL during the last few years and there has been an overwhelming consensus that it's a better way to go.
If you do already know JS, you probably used it in the context of making dynamic web pages, and likely relied on some extensive fancy-ass libraries (JQuery, React, etc.) to do cool stuff. We are not going to use any of that - it will all be plain, vanilla JavaScript code.
One good place to start might be with a short set of notes that I put together a while ago when I first had to learn JS. It's in the form of an interactive web page in which you can try out and edit the code examples directly in the browser. See https://stevekautz.com/cs336f22/js_notes/
JS is a fascinating language, and I find I can amuse myself for hours trying to figure out how it works. It is huge entertainment value for anyone interested in programming languages.
There are many, many resources on the WWW for learning JavaScript. Most are just crap. One good place to start might be An Introduction to JavaScript for Sophisticated Programmers .
python3 -m http.server 2222(here 2222 is the port number you'll point your browser to).
If you are running Python 2, the equivalent library is:
python -m SimpleHTTPServer 2222
As we start using and understanding OpenGL we'll start incorporating parts of a higher-level library called Three.js When the time comes I'll post the relevant parts on Canvas.
Article by Eric Haines gives a detailed overview of the modern graphics pipeline
http://www.realtimerendering.com/erich/AnIntroductoryTourOfInteractiveRendering.pdf
Reference card for WebGL and GLSL
https://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf
Html man pages for OpenGL ES 2.0
http://www.khronos.org/opengles/sdk/docs/man/
(Functions do the same things as WegGL so the function descriptions are accurate, but the parameter types for the JS versions are sometimes different, so check the reference card above for the exact function signature.)
Three.js documentation
http://threejs.org/docs/
Eric Haines' Udacity course on graphics using three.js
http://www.realtimerendering.com/blog/interactive-3d-rendering-is-finally-complete/
(You can download and read the "book" chapters - basically the lecture scripts
here. I've read most of these and the presentations are really good, though too much of the OpenGL details and mathematics are hidden to consider this a "textbook". The chapters on transformations and matrices are likely to be especially useful.)
The Real-Time Rendering site (has lots of references and recommended books)
http://www.realtimerendering.com/
Derivation of projection matrix
http://www.songho.ca/opengl/gl_projectionmatrix.html
Phong reflection model
http://pages.cpsc.ucalgary.ca/~eharris/past/cpsc453/f10/tut20/
JS Module pattern and IIFEs
http://benalman.com/news/2010/11/immediately-invoked-function-expression/
http://toddmotto.com/mastering-the-module-pattern/
Some nice demos of Perlin noise used for displacement mapping, the fireball also has an associated tutorial about how it was done.
https://www.clicktorelease.com/blog/experiments-with-perlin-noise
https://www.clicktorelease.com/blog/vertex-displacement-noise-3d-webgl-glsl-three-js
"A trip through the graphics pipeline", lots of hardware-oriented detail
https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/