mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

skybox_to_octahedral_uv and vice versa #33

Closed mattrdowney closed 6 years ago

mattrdowney commented 6 years ago

sky.material.GetTexture("_DownTex"); // also Up/Left/Right/Front/Back

Double texture size or half size since one version has 6 textures and the other has 1 texture

mattrdowney commented 6 years ago

Or, even better, provide a target resolution parameter with a default.

mattrdowney commented 6 years ago

Extra parameter for subpixel sample rate 1...N aka (1,4,9,16) for box, (1,3,6,10) for triangle. (with default)

And an extra parameter for optional antialiasing. (with default: on)

mattrdowney commented 6 years ago

Ideally, this function would be 1-to-1 mapping (although I can't think of how to do that).

mattrdowney commented 6 years ago

Done as of 54ec8ca75fba5615d843b1fcbf79644c7c7cc49a