diff --git a/Source/Engine/Render2D/Render2D.cpp b/Source/Engine/Render2D/Render2D.cpp
index 21cdee442..609f9697a 100644
--- a/Source/Engine/Render2D/Render2D.cpp
+++ b/Source/Engine/Render2D/Render2D.cpp
@@ -812,11 +812,11 @@ void Render2D::PopClip()
OnClipScissors();
}
-void Render2D::PushTint(const Color& tint)
+void Render2D::PushTint(const Color& tint, bool inherit)
{
RENDER2D_CHECK_RENDERING_STATE;
- TintLayersStack.Push(tint * TintLayersStack.Peek());
+ TintLayersStack.Push(inherit ? tint * TintLayersStack.Peek() : tint);
}
void Render2D::PeekTint(Color& tint)
diff --git a/Source/Engine/Render2D/Render2D.h b/Source/Engine/Render2D/Render2D.h
index 44cb8b51a..720e5e857 100644
--- a/Source/Engine/Render2D/Render2D.h
+++ b/Source/Engine/Render2D/Render2D.h
@@ -157,7 +157,7 @@ public:
/// Pushes tint color.
///
/// The tint color.
- API_FUNCTION() static void PushTint(API_PARAM(Ref) const Color& tint);
+ API_FUNCTION() static void PushTint(API_PARAM(Ref) const Color& tint, bool inherit = true);
///
/// Peeks the current tint color.