gongpha / gdQmapbsp

A simple plugin that loads Quake's MAP/BSP files into Godot 4 interactively
MIT License
42 stars 5 forks source link

Max texture limit #11

Closed victorbstan closed 1 year ago

victorbstan commented 1 year ago

Why?

Texture sample numbers are device dependent, and the limit is smaller on M2 Macs, for compatibility purposes aiming for lower common denominator.

Also worth noting that it's probably worth exploring in the future using only one texture sampler as that's usually how shaders are implemented, one texture sampler per texture type. IE: albedo, metallic, normal, lightmap, etc...

What?

gongpha commented 1 year ago

I'm not sure if there were maps that used a high number of textures and led exceeded the limit (96). The highest texture usage number I've found is around 70-75.

But the changes make sense to me, though.