mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-16 23:11:42 +00:00
chore: reorder assignment of light def members slightly
This commit is contained in:
@@ -37,6 +37,8 @@ namespace
|
||||
std::string imageName;
|
||||
int8_t samplerState;
|
||||
file.m_stream->read(reinterpret_cast<char*>(&samplerState), sizeof(int8_t));
|
||||
lightDef->attenuation.samplerState = samplerState;
|
||||
|
||||
std::getline(*file.m_stream, imageName, '\0');
|
||||
|
||||
auto* imageDependency = context.LoadDependency<AssetImage>(imageName);
|
||||
@@ -47,7 +49,6 @@ namespace
|
||||
}
|
||||
registration.AddDependency(imageDependency);
|
||||
|
||||
lightDef->attenuation.samplerState = samplerState;
|
||||
lightDef->attenuation.image = imageDependency->Asset();
|
||||
|
||||
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace
|
||||
std::string imageName;
|
||||
int8_t samplerState;
|
||||
file.m_stream->read(reinterpret_cast<char*>(&samplerState), sizeof(int8_t));
|
||||
lightDef->attenuation.samplerState = samplerState;
|
||||
|
||||
std::getline(*file.m_stream, imageName, '\0');
|
||||
|
||||
auto* imageDependency = context.LoadDependency<AssetImage>(imageName);
|
||||
@@ -47,7 +49,6 @@ namespace
|
||||
}
|
||||
registration.AddDependency(imageDependency);
|
||||
|
||||
lightDef->attenuation.samplerState = samplerState;
|
||||
lightDef->attenuation.image = imageDependency->Asset();
|
||||
|
||||
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace
|
||||
|
||||
int8_t attenuationSamplerState;
|
||||
file.m_stream->read(reinterpret_cast<char*>(&attenuationSamplerState), sizeof(int8_t));
|
||||
lightDef->attenuation.samplerState = attenuationSamplerState;
|
||||
|
||||
std::string attenuationName;
|
||||
std::getline(*file.m_stream, attenuationName, '\0');
|
||||
@@ -47,9 +48,11 @@ namespace
|
||||
return AssetCreationResult::Failure();
|
||||
}
|
||||
registration.AddDependency(attenuationImageDependency);
|
||||
lightDef->attenuation.image = attenuationImageDependency->Asset();
|
||||
|
||||
int8_t cucolorisSamplerState;
|
||||
file.m_stream->read(reinterpret_cast<char*>(&cucolorisSamplerState), sizeof(int8_t));
|
||||
lightDef->cucoloris.samplerState = cucolorisSamplerState;
|
||||
|
||||
std::string cucolorisName;
|
||||
std::getline(*file.m_stream, cucolorisName, '\0');
|
||||
@@ -64,9 +67,6 @@ namespace
|
||||
registration.AddDependency(cucolorisImageDependency);
|
||||
lightDef->cucoloris.image = cucolorisImageDependency->Asset();
|
||||
}
|
||||
lightDef->attenuation.samplerState = attenuationSamplerState;
|
||||
lightDef->attenuation.image = attenuationImageDependency->Asset();
|
||||
lightDef->cucoloris.samplerState = cucolorisSamplerState;
|
||||
|
||||
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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