Thanks for the interesting sample!
I noticed these minor issues:
buffer0 and buffer1 in main.ts are associated with flip in the the shader, but where are these buffers being written to? I didn't see associated buffer write calls.
samp seems unused in the shader.
cubeTexture - naming is a little confusing.