From 805471eb98e2403145657bd3a86b936276e336bf Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 15 Feb 2016 11:00:43 -0800 Subject: [PATCH] Add CCEBevelGradient --- Runtime/Particle/CColorElement.cpp | 6 ++++++ Runtime/Particle/CColorElement.hpp | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/Runtime/Particle/CColorElement.cpp b/Runtime/Particle/CColorElement.cpp index 2953bbdd0..a17207bd6 100644 --- a/Runtime/Particle/CColorElement.cpp +++ b/Runtime/Particle/CColorElement.cpp @@ -156,4 +156,10 @@ bool CCEParticleColor::GetValue(int /*frame*/, Zeus::CColor& colorOut) const return false; } +bool CCEBevelGradient::GetValue(int frame, Zeus::CColor& colorOut) const +{ + m_gradientColor->GetValue(frame, colorOut); + return false; +} + } diff --git a/Runtime/Particle/CColorElement.hpp b/Runtime/Particle/CColorElement.hpp index dab30050e..95ae0549f 100644 --- a/Runtime/Particle/CColorElement.hpp +++ b/Runtime/Particle/CColorElement.hpp @@ -92,6 +92,16 @@ class CCEParticleColor : public CColorElement public: bool GetValue(int frame, Zeus::CColor& colorOut) const; }; + +/* Custom additions */ +class CCEBevelGradient : public CColorElement +{ + std::unique_ptr m_gradientColor; +public: + CCEBevelGradient(CColorElement* gradientCol) + : m_gradientColor(gradientCol) {} + bool GetValue(int frame, Zeus::CColor &colorOut) const; +}; } #endif // __PSHAG_CCOLORELEMENT_HPP__