Convert equirectangular image to cubemap (6 faces stored separately)
$ go build ./e2c.go
$ ./e2c <output_size> <input_image> <output_folder>
Example:
$ ./e2c 512 skybox.png output
Or directly:
$ go run ./e2c.go 512 skybox.png output
- It's able to load jpg and png images, but output is always png. (although it can be changed easily)
- I just wanted to try it.. this is literally my first program in Go. :)