Closed gongpha closed 11 months ago
Very nice, maybe something to consider either for this PR or a future one; if it's possible to move the uniform sampler # (96) to gdscript (CPU memory) instead of GPU shader, and keep the shader to 1 sample?
I will surely change the shader from one material for all textures to one material per texture to make it easier to customize individual texture drawings. But I'll probably have to factor in the code to keep updating the uniforms for every shader on the map like lightstyles or animated textures. Maybe using the global uniforms, a new feature in 4.0, might also be a good option.
Using the alternate textures on certain entities doesn't work yet (activated textures on func_button
). I will add them after refactoring the surface shader.
https://github.com/gongpha/gdQmapbsp/assets/13400398/8c47f707-fd45-4f5f-86e5-5da472024403