2#include "Resources/Resources.h"
3#include "Resources/Material.h"
4#include "Resources/MaterialInstance.h"
5#include "Foundation/ComponentModel/Component.h"
15 static void registerType();
32template<>
inline Cogs::StringView getName<Cogs::Core::TerrainComponent>() {
return "TerrainComponent"; }
Base class for Component instances.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
TextureHandle customTexture
Handle to custom texture, made available in custom shaders as "customTexture".
MaterialInstanceHandle depthMaterial
The terrain material instance used for the depth buffer.
SamplerState::AddressMode addressMode
Address mode for custom texture.
MaterialInstanceHandle material
The terrain material instance.
AddressMode
Addressing modes to use when sampling textures.
@ Wrap
Texture coordinates automatically wrap around to [0, 1] range.