mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-18 02:32:50 +00:00
feat(dashboard): metal and glow looks in the UGC and zone 3D views
NifFile::ShaderLookFor knows Polished Metal (98), Brushed Steel (99) and LEGO-Emissive (53). The UGC mesh route sends each mesh's look (from its multishader tag), and the UGC 3D view draws metal as reflective and glow unlit. The zone views draw LEGO-Emissive objects going to their vertex color by its alpha, as the shader does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -867,6 +867,16 @@ namespace Scenery {
|
||||
return zone->json;
|
||||
}
|
||||
|
||||
std::vector<uint16_t> MultishaderLooks(const NifFile::Model& model) {
|
||||
std::vector<uint16_t> looks;
|
||||
for (const auto& mesh : model.meshes) {
|
||||
std::optional<int32_t> shader;
|
||||
if (const auto it = g_ShaderValues.find(mesh.material.shaderTag); it != g_ShaderValues.end()) shader = it->second;
|
||||
looks.push_back(NifFile::ShaderLookFor(NifFile::MultishaderPart(shader)));
|
||||
}
|
||||
return looks;
|
||||
}
|
||||
|
||||
bool ZoneReady(uint32_t zoneId) {
|
||||
return g_Zones.Ready(zoneId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user