Improve ship nickname rendering

This commit is contained in:
vottozi committed 2026-02-02 04:44:18 +06:00
1 parent e18484ea62
commit e050d7d0ec
7 files changed
+45 -29

No files matched your search

+9
View File
@@ -835,6 +835,15 @@ namespace ZL {
}
}
void Renderer::RenderUniform4fv(const std::string& uniformName, const float* value)
{
auto shader = shaderManager.GetCurrentShader();
auto uniform = shader->uniformList.find(uniformName);
if (uniform != shader->uniformList.end()) {
glUniform4fv(uniform->second, 1, value);
}
}
void Renderer::RenderUniform1i(const std::string& uniformName, const int value)
{
auto shader = shaderManager.GetCurrentShader();