Fasguy / MinecraftToolbox

A WebApp that provides tools for mixing up your Minecraft gameplay
https://fasguy.net/minecraft_toolbox
MIT License
8 stars 3 forks source link

Background panorama should be turned into a UV-mapped cube instead of separate faces #4

Closed Fasguy closed 2 years ago

Fasguy commented 2 years ago

The cube for the panorama currently consists of six individual faces, each with their own individual textures. The panorama image sides are all part of a single image, to reduce the amount of requests and loading times. With the current cube system, this image then needs to be split up back into individual images and applied to the corresponding cube faces. This is a total waste of resources. Instead a UV map could be used to apply the single big image directly to the cube. Unfortunately i don't know enough about WebGL to get this to work properly and i don't want to use something like three.js just for a cubemap panorama.