normals react to skeletal animation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 882cd65e51
commit 45ab442396
4 changed files with 57 additions and 21 deletions
+23 -11
View File
@@ -1,14 +1,15 @@
#include"model.h"
#include"light.h"
#include"node.h"
#include"root.h"
#include"shader.h"
#include"material.h"
#include"mesh.h"
#include<glad.h>
#include<glfw3.h>
#include<ext.hpp>
#include<iostream>
#include "model.h"
#include "light.h"
#include "node.h"
#include "root.h"
#include "shader.h"
#include "material.h"
#include "mesh.h"
#include <glad.h>
#include <glfw3.h>
#include <ext.hpp>
#include <iostream>
using namespace glm;
using namespace std;
@@ -29,6 +30,17 @@ namespace vb01{
delete depthMapShader;
}
void Light::animate(float value, KeyframeChannel keyframeChannel){
switch(keyframeChannel.type){
case KeyframeChannel::SPOTLIGHT_INNER_ANGLE:
innerAngle = value;
break;
case KeyframeChannel::SPOTLIGHT_OUTER_ANGLE:
outerAngle = value;
break;
}
}
void Light::initDepthMap(){
string basePath = "../../vb01/depthMap.";