Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Shared skin resources #255

Open Zemanzo opened 5 years ago

Zemanzo commented 5 years ago

Description Currently, every skin has their own set of resources. This makes management easy, but has a significant impact on the client, as they might have to download identical files multiple times. For example, all poolball skins use the same normal map. It would be pointless to download it separately for every variation.

Minimum Acceptance Criteria

Qaomen commented 3 years ago

I don't think not having shared skin resources is currently an issue. Normal maps are generally unique to the marble skin, with the exception to the poolball skins. Adding to that, the normal maps of the poolball skins are visually so insignificant that I think the better option is to simply remove these normal maps entirely.

The default vertex shader could be a useful feature, though. We can opt to define a hard-coded vertex shader whenever a skin's vertex.glsl doesn't exist.