Getting ShaderID one time per material in total instead of one time every frame

This commit is contained in:
Teejoon
2016-03-11 11:03:09 +01:00
parent 937bf823f3
commit e000408593
3 changed files with 18 additions and 18 deletions
@@ -18,6 +18,7 @@
#include "../Core/ResourceManager.h"
#include "Texture.h"
#include "Skeleton.h"
#include "ShaderProgram.h"
#include "boost\endian\buffers.hpp"
@@ -87,6 +88,7 @@ public:
struct MaterialProperties {
MaterialType type;
MaterialBasic* material;
unsigned int ShaderID = 0;
};
const Vertex* Vertices() const {