Implemented scanline and silhouette effect #363

Merged
Xenosas1337 merged 12 commits from SP3-1-Rendering into main 2023-02-24 17:20:46 +08:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 5623115e29 - Show all commits

View File

@ -383,7 +383,7 @@ namespace SHADE
return result; return result;
} }
void SHAssetManager::CompileAsset(AssetPath const& path, bool genMeta) noexcept void SHAssetManager::CompileAsset(AssetPath const& path, bool genMeta, AssetID id) noexcept
{ {
if (!std::filesystem::exists(path)) if (!std::filesystem::exists(path))
{ {

View File

@ -90,7 +90,7 @@ namespace SHADE
static std::vector<SHAssetData const*> GetAllDataOfType(AssetType type) noexcept; static std::vector<SHAssetData const*> GetAllDataOfType(AssetType type) noexcept;
static std::vector<SHAsset> GetAllRecordOfType(AssetType type) noexcept; static std::vector<SHAsset> GetAllRecordOfType(AssetType type) noexcept;
static void CompileAsset(AssetPath const& path, bool genMeta) noexcept; static void CompileAsset(AssetPath const& path, bool genMeta, AssetID id = 0) noexcept;
static FolderPointer GetRootFolder() noexcept; static FolderPointer GetRootFolder() noexcept;
static void RefreshDirectory() noexcept; static void RefreshDirectory() noexcept;

View File

@ -233,7 +233,7 @@ namespace SHADE
{ {
if(ImGui::Selectable("Compile")) if(ImGui::Selectable("Compile"))
{ {
SHAssetManager::CompileAsset(file.path, !file.compiled); SHAssetManager::CompileAsset(file.path, !file.compiled, file.assetMeta->id);
QueueRefresh(); QueueRefresh();
} }
ImGui::EndPopup(); ImGui::EndPopup();