How to create a default Texture for a scene environment

I created CubeTexture here White Gold (Reflector, custom geometry) and here https://codepen.io/prisoner849/full/qBaNKNM (see generateCubeMap function).