Skip to content

Commit

Permalink
Load the built in bloom shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Dec 5, 2023
1 parent 4e56d4d commit 425f341
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RavEngine
8 changes: 8 additions & 0 deletions Samples/Rendering/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <RavEngine/Debug.hpp>
#include <RavEngine/AudioRoom.hpp>
#include <RavEngine/Texture.hpp>
#include <RavEngine/BuiltinPostProcess.hpp>
#include <RavEngine/RenderEngine.hpp>
#include "AppInfo.hpp"
#include <numbers>

Expand Down Expand Up @@ -113,6 +115,12 @@ struct Level : public RavEngine::World {
starMaterialInstance = New<StarMatMaterialInstance>(Material::Manager::Get<StarMat>());
star.EmplaceComponent<StaticMesh>(starMesh, UnlitMeshMaterialInstance(starMaterialInstance));
star.GetTransform().LocalTranslateDelta({objectDistance,5,0});

// post procesing
auto bloomEffect = New<BloomEffect>();
auto bloomEffectInstance = New<BloomEffectInstance>(bloomEffect);

GetApp()->GetRenderEngine().globalEffects.effects.push_back(bloomEffectInstance);
}


Expand Down

0 comments on commit 425f341

Please sign in to comment.