From 425f341a305bf42edbe203c250bc43d9b982f5d9 Mon Sep 17 00:00:00 2001 From: Ravbug Date: Mon, 4 Dec 2023 23:17:41 -0500 Subject: [PATCH] Load the built in bloom shader --- RavEngine | 2 +- Samples/Rendering/main.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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); }