After calculating the normals on the fly, this problem appears to have gone away.
I think this is due to the normals, but I'm not sure.
- Allow for easier swapping of shader programs
- Try shading without lighting
- Further debugging...
Alternatively, compile into the page while building
I would like to be able to precompile animations as either a sequence of textures, or as a video.
Rotating the texture in 2D doesn't make any sense, let's use the equations from here and here.
I don't think we have to do any conversion, I think we can just do the rotation with the vector components and be just fine.
- Generate sequence of textures representing an animation
- For each animation request
- Load the next textures from the animation
- Draw
- Allow toggling between the original vibrate-back-and-forth and the series of textures
- Also animate and load normals
- Generate sequence of textures
- Compress sequence of textures into video
- Load up video with Javascript in such a way that I can get an even framerate and access frames individually
- For each animation request
- Load the next frame from the animation
- Draw