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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user