adding lonely option for shaders and adding a BombExplosionShaderComponent.cpp to save data

This commit is contained in:
Clément Le Bihan
2021-06-16 10:30:10 +02:00
parent 17bfbfe9f9
commit e9e389374b
10 changed files with 248 additions and 160 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ namespace RAY
Cache<::Shader> Shader::_shadersCache(LoadShader, UnloadShader);
Shader::Shader(const std::string &vertexFile, const std::string &fragmentFile)
Shader::Shader(const std::string &vertexFile, const std::string &fragmentFile, bool lonely)
: _vertexFile(vertexFile),
_fragmentFile(fragmentFile),
_rayLibShader(_shadersCache.fetch(vertexFile, fragmentFile))
_rayLibShader(_shadersCache.fetch(vertexFile, fragmentFile, lonely))
{
this->_rayLibShader->locs[SHADER_LOC_MAP_EMISSION] = GetShaderLocation(*this->_rayLibShader, "mask");
}