From fd5247321f36e7cb50dd90cb9bd1b5d60a3a289f Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 30 Jun 2023 05:55:41 +1000 Subject: Split world & interface shaders --- source/application/StarRenderer.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/application/StarRenderer.hpp') diff --git a/source/application/StarRenderer.hpp b/source/application/StarRenderer.hpp index 908f121..58c1c27 100644 --- a/source/application/StarRenderer.hpp +++ b/source/application/StarRenderer.hpp @@ -135,13 +135,15 @@ public: // specific to each type of renderer, so it will be necessary to key the // configuration off of the renderId string. This should not be called every // frame, because it will result in a recompile of the underlying shader set. - virtual void setEffectConfig(Json const& effectConfig, StringMap const& shaders) = 0; + virtual void loadEffectConfig(String const& name, Json const& effectConfig, StringMap const& shaders) = 0; // The effect config will specify named parameters and textures which can be // set here. virtual void setEffectParameter(String const& parameterName, RenderEffectParameter const& parameter) = 0; virtual void setEffectTexture(String const& textureName, Image const& image) = 0; + virtual bool switchEffectConfig(String const& name) = 0; + // Any further rendering will be scissored based on this rect, specified in // pixels virtual void setScissorRect(Maybe const& scissorRect) = 0; -- cgit v1.2.3