From dd07aa25fa47aaf42229e58e73f689f166c84348 Mon Sep 17 00:00:00 2001 From: Dynamitos Date: Fri, 11 Apr 2025 00:52:23 +0200 Subject: [PATCH] Fixing swizzle shader expression --- src/Engine/Material/ShaderExpression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine/Material/ShaderExpression.h b/src/Engine/Material/ShaderExpression.h index f79232c..0254885 100644 --- a/src/Engine/Material/ShaderExpression.h +++ b/src/Engine/Material/ShaderExpression.h @@ -183,7 +183,7 @@ struct SwizzleExpression : public ShaderExpression { StaticArray comp = {-1, -1, -1, -1}; SwizzleExpression() {} SwizzleExpression(StaticArray comp) : comp(std::move(comp)) {} - SwizzleExpression(std::string key, std::string target, StaticArray comp) : ShaderExpression(key) { + SwizzleExpression(std::string key, std::string target, StaticArray comp) : ShaderExpression(key), comp(std::move(comp)) { inputs["target"].source = target; } virtual ~SwizzleExpression() {} @@ -199,7 +199,7 @@ struct SampleExpression : public ShaderExpression { SampleExpression(std::string key, std::string texture, std::string sampler, std::string texCoords) : ShaderExpression(key) { inputs["texture"].source = texture; inputs["sampler"].source = sampler; - inputs["texCoords"].source = texCoords; + inputs["coords"].source = texCoords; } virtual ~SampleExpression() {} virtual uint64 getIdentifier() const override { return IDENTIFIER; }