From 1719cdf98d96e23f79118bd41cc7d7afbff9cba1 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sun, 8 Sep 2024 14:23:56 +0300 Subject: [PATCH] adding shader assets --- root.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root.cpp b/root.cpp index 01bb698..0c0c1d5 100755 --- a/root.cpp +++ b/root.cpp @@ -5,6 +5,7 @@ #include "box.h" #include "quad.h" #include "lineRenderer.h" +#include "assetManager.h" #include "animationController.h" #include "glad.h" @@ -22,6 +23,7 @@ namespace vb01{ Root* Root::getSingleton(){ if(!root) root = new Root(); + return root; } @@ -47,6 +49,8 @@ namespace vb01{ this->height = height; this->libPath = libPath; + AssetManager::getSingleton()->load(Root::getSingleton()->getLibPath()); + initWindow(name); brdfLutPlane = new Quad(Vector3(1, 1, 1) * 2); @@ -59,7 +63,7 @@ namespace vb01{ initBloomFramebuffer(); initGuiPlane(fragTexture, brightTexture); - shader = new Shader(Root::getSingleton()->getLibPath() + "line3D"); + shader = new Shader(Root::getSingleton()->getLibPath() + "line3D"); } void Root::initWindow(string name){