Cubemap generation tool for Unity
- Window -> Package Manager
- Add package from git URL...
- Add the package URL
https://github.com/tsgcpp/TSCubemapGenerator.git?path=Assets/Plugins/TSCubemapGenerator#1.0.0
- Install the package via openupm-cli
$ openupm add com.tsgcpp.tscubemapgeneratorhttps://docs.unity3d.com/Manual/upm-ui.html
- Unity 2019.4 or later
- You can watch the flow in this movie
- TSCubemapGenerator -> Open Tool Window
- Load a scene to be baked into Cubemap
- Create a
Camerato render the scene- You should add
Skyboxcomponent with a skybox material and to theCamera
- You should add
- Set a material for preview to
Preview Materialin the tool- You can also use
PreviewMaterial.matin the package
- You can also use
- Click
Startbutton
- Move the
Camerato a rendering point - Click
Render Cubemap- You can also use
Enable Realtime Renderingto update the cubemap automatically - WARNING:
Enable Realtime Renderingis heavy, so you should use this with low size
- You can also use
- Click
Export Cubemap to File
- If the cubemap folder is under
Assets, the cubemap will be imported as a Cubemap asset - If not so, you should set the parameters to the cubemap
- TextureShape: Cube
- Mapping: 6 Frames Layout (Cubic Environment)
- VerticalPng
- PNG images with vertical cross layout
- HorizontalPng
- PNG images with horizontal cross layout
