1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

30 lines
551 B
C++
Raw Normal View History

#ifndef COMPONENTS_TERRAIN_DEFS_HPP
#define COMPONENTS_TERRAIN_DEFS_HPP
2015-06-03 01:18:36 +02:00
#include <string>
namespace Terrain
{
enum Direction
{
North = 0,
East = 1,
South = 2,
West = 3
};
struct LayerInfo
{
std::string mDiffuseMap;
std::string mNormalMap;
2016-03-22 21:00:31 +01:00
bool mParallax; // Height info in normal map alpha channel?
bool mSpecular; // Specular info in diffuse map alpha channel?
2016-02-20 19:54:47 +01:00
bool requiresShaders() const { return !mNormalMap.empty() || mSpecular; }
};
}
#endif