mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-31 09:32:02 +00:00
adding lonely option for shaders and adding a BombExplosionShaderComponent.cpp to save data
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user