mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
updated samples to use the new shader system
some bugfixes
This commit is contained in:
+4
-1
@@ -66,17 +66,20 @@ namespace vb01{
|
||||
case Uniform::TEXTURE:{
|
||||
TextureUniform *u = (TextureUniform*)uni;
|
||||
shader->setInt(2 * i, u->name + (u->animatable ? ".pastTexture" : ""));
|
||||
shader->setBool(u->animatable, u->name + ".animated");
|
||||
|
||||
if(u->value->getNumFrames() > 1){
|
||||
shader->setInt(2 * i + 1, u->name + ".nextTexture");
|
||||
shader->setFloat(u->value->getMixRatio(), u->name + ".mixRatio");
|
||||
}
|
||||
|
||||
u->value->update(2 * i);
|
||||
|
||||
++i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user