#include "Modules/ModuleManager.h" #include "Interfaces/IPluginManager.h" #include "Misc/Paths.h" #include "ShaderCore.h" class FVoxelForgeLivingPlaneModule final : public IModuleInterface { public: virtual void StartupModule() override { const TSharedPtr Plugin = IPluginManager::Get().FindPlugin(TEXT("VoxelForge")); if (!Plugin.IsValid()) { UE_LOG(LogTemp, Error, TEXT("VoxelForgeLivingPlane could not find its owning plugin.")); return; } AddShaderSourceDirectoryMapping( TEXT("/Plugin/VoxelForgeLivingPlane"), FPaths::Combine(Plugin->GetBaseDir(), TEXT("Shaders"))); } }; IMPLEMENT_MODULE(FVoxelForgeLivingPlaneModule, VoxelForgeLivingPlane)