framebuffer related bugfixes

setting already present material uniforms
This commit is contained in:
devZoGok
2021-11-22 20:30:31 +02:00
parent 75658fa0e8
commit 5ca6e8b16f
6 changed files with 66 additions and 63 deletions
+6
View File
@@ -26,6 +26,12 @@ namespace vb01{
return uni;
}
void Material::setTexUniform(string name, Texture *texture, bool animatable){
TextureUniform *uni = (TextureUniform*)getUniform(name);
uni->value = texture;
uni->animatable = animatable;
}
void Material::update(){
shader->use();