Added blendmap component

Added renderque for models with a blendmap component
Added shaders for blendmaps
This commit is contained in:
Tleety
2014-05-28 20:24:31 +02:00
parent a5f4c9daa0
commit 761b8e21e1
13 changed files with 260 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef Components_BlendMap_h__
#define Components_BlendMap_h__
#include "Component.h"
#include "Entity.h"
namespace Components
{
struct BlendMap : Component
{
BlendMap()
: TextureRed("Textures/Ground/Asphalt")
, TextureGreen("Textures/Ground/Grass")
, TextureBlue("Textures/Ground/Sand")
, TextureRepeats(100.f) { }
std::string TextureRed, TextureGreen, TextureBlue;
float TextureRepeats;
virtual BlendMap* Clone() const override { return new BlendMap(*this); }
};
}
#endif // !Components_BlendMap_h__