expanded light sample

minor improvements
This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 1d102d091f
commit 9aa2981e70
11 changed files with 60 additions and 14 deletions
+2 -2
View File
@@ -46,11 +46,11 @@ int main(){
Skeleton *skeleton = mesh->getSkeleton();
AnimationController *controller = skeleton->getAnimationController();
AnimationChannel *channel = new AnimationChannel(controller);
AnimationChannel *channel = new AnimationChannel();
controller->addAnimationChannel(channel);
channel->addAnimatable(skeleton->getBone("bone"));
channel->setAnimationName("morph");
channel->setLoop(true);
controller->addAnimationChannel(channel);
Box *box = new Box(Vector3(1, 1, 1) * .25);
Material *boxMat = new Material();