From a5fb4e111679950055645180715ab696b09ca90f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 11 Oct 2022 11:48:49 +0300 Subject: [PATCH] Add SplatMaterial to Resources --- source/resources/resources.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/resources/resources.cpp b/source/resources/resources.cpp index ab4b0a8d..1a580552 100644 --- a/source/resources/resources.cpp +++ b/source/resources/resources.cpp @@ -24,6 +24,7 @@ #include "resources.h" #include "sampler.h" #include "simplescene.h" +#include "splatmaterial.h" #include "technique.h" #include "texture1d.h" #include "texture2d.h" @@ -84,6 +85,9 @@ Resources::Resources(bool set_as_global): .notify(&set_debug_name); add_type().base().base().suffix(".scene") .creator([this](const string &n) -> SimpleScene * { create_generic(n); return 0; }); + add_type().base().suffix(".mat") + .creator([this](const string &n) -> SplatMaterial * { create_generic(n); return 0; }) + .notify(&set_debug_name); add_type().suffix(".tech").keyword("technique") .notify(&set_debug_name); add_type().base().suffix(".tex") -- 2.45.2