Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 510 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 510 Bytes

equirectangular-to-cubemap

Convert equirectangular image to cubemap (6 faces stored separately)

Build

$ go build ./e2c.go

Usage

$ ./e2c <output_size> <input_image> <output_folder>

Example:

$ ./e2c 512 skybox.png output

Or directly:

$ go run ./e2c.go 512 skybox.png output

Notes

  • It's able to load jpg and png images, but output is always png. (although it can be changed easily)

Go?

  • I just wanted to try it.. this is literally my first program in Go. :)