Procedural Skybox texture is generated in offscreen canvas2d. Two random angles evenly distributed on (-π/4, π/4) are used to calculate "stars" x and y coordinates. See the page source for details. Two Skybox textures.
WebXR samples     updated 26 Apr 2020