mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-02 12:33:50 +00:00
framebuffer related bugfixes
setting already present material uniforms
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user