From: Mikko Rasa Date: Tue, 11 Oct 2022 08:48:49 +0000 (+0300) Subject: Add SplatMaterial to Resources X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=a5fb4e111679950055645180715ab696b09ca90f;p=libs%2Fgl.git Add SplatMaterial to Resources --- 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")