Particle system improvements + Emissive materials

Added option for Global particle positions
Added material property for particles
Added Emissive rendering
This commit is contained in:
Antoine Pilote
2023-09-23 20:31:50 -04:00
parent 50bc020f6e
commit 2cb0ca4f29
17 changed files with 242 additions and 26 deletions

View File

@@ -15,11 +15,13 @@ namespace Nuake
return false;
}
bool String::EndsWith(const std::string& string, const std::string& end)
bool String::EndsWith(const std::string& string, const std::string_view& end)
{
if (string.length() >= end.length())
{
return (0 == string.compare(string.length() - end.length(), end.length(), end));
bool result = string.ends_with(end);
return result;
}
return false;