mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
normals react to skeletal animation
This commit is contained in:
@@ -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.";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user