2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-17 07:21:43 +00:00

chore: reorder assignment of light def members slightly

This commit is contained in:
Jan Laupetin
2026-05-16 10:45:26 +02:00
parent 72dd51609f
commit 015544eb79
5 changed files with 11 additions and 7 deletions
@@ -36,6 +36,8 @@ namespace
std::string attenuationName;
int8_t samplerState;
file.m_stream->read(reinterpret_cast<char*>(&samplerState), sizeof(int8_t));
lightDef->attenuation.samplerState = samplerState;
std::getline(*file.m_stream, attenuationName, '\0');
auto* attenuationImageDependency = context.LoadDependency<AssetImage>(attenuationName);
@@ -46,7 +48,6 @@ namespace
}
registration.AddDependency(attenuationImageDependency);
lightDef->attenuation.samplerState = samplerState;
lightDef->attenuation.image = attenuationImageDependency->Asset();
lightDef->lmapLookupStart = 0;