diff --git a/RavEngine b/RavEngine index f9eb7bd..d295635 160000 --- a/RavEngine +++ b/RavEngine @@ -1 +1 @@ -Subproject commit f9eb7bd71854c77e6c15eca37e8f1df0526452c8 +Subproject commit d29563580528f362fe1875811ca62252dc68a9f0 diff --git a/Samples/Rendering/main.cpp b/Samples/Rendering/main.cpp index 4172b6c..d8c310d 100644 --- a/Samples/Rendering/main.cpp +++ b/Samples/Rendering/main.cpp @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include "AppInfo.hpp" #include @@ -113,6 +115,12 @@ struct Level : public RavEngine::World { starMaterialInstance = New(Material::Manager::Get()); star.EmplaceComponent(starMesh, UnlitMeshMaterialInstance(starMaterialInstance)); star.GetTransform().LocalTranslateDelta({objectDistance,5,0}); + + // post procesing + auto bloomEffect = New(); + auto bloomEffectInstance = New(bloomEffect); + + GetApp()->GetRenderEngine().globalEffects.effects.push_back(bloomEffectInstance); }