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.tscubemapgenerator
https://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
Camera
to render the scene- You should add
Skybox
component with a skybox material and to theCamera
- You should add
- Set a material for preview to
Preview Material
in the tool- You can also use
PreviewMaterial.mat
in the package
- You can also use
- Click
Start
button
- Move the
Camera
to a rendering point - Click
Render Cubemap
- You can also use
Enable Realtime Rendering
to update the cubemap automatically - WARNING:
Enable Realtime Rendering
is 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