material animation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 69463c535b
commit d2fce970d6
3 changed files with 10 additions and 19 deletions
+8
View File
@@ -148,6 +148,14 @@ namespace vb01{
}
}
void Texture::animate(float value, KeyframeChannel keyframeChannel){
switch(keyframeChannel.type){
case KeyframeChannel::TEXTURE_MIX_RATIO:
mixRatio = value;
break;
}
}
void Texture::update(int id){
//updateFrame();
select(id);