Cogs.Core
FogComponent.h
1#pragma once
2
3#include "Foundation/ComponentModel/Component.h"
4
5#include <glm/vec4.hpp>
6
7namespace Cogs
8{
9 namespace Core
10 {
17 {
18 public:
20 static void registerType();
21
23 glm::vec4 color = glm::vec4(1.0, 1.0, 1.0, 1.0);
24
26 float distance = 20000.0f;
27
29 float amount = 1;
30
32 bool enabled = false;
33 };
34 }
35}
36
37template<> inline Cogs::StringView getName<Cogs::Core::FogComponent>() { return "FogComponent"; }
Base class for Component instances.
Definition: Component.h:143
Contains data to describe fog.
Definition: FogComponent.h:17
static void registerType()
Register the type in the type system.
Definition: FogComponent.cpp:8
glm::vec4 color
Fog color.
Definition: FogComponent.h:23
float amount
Amount of fog to blend in.
Definition: FogComponent.h:29
float distance
Distance at which the fog is at its most dense.
Definition: FogComponent.h:26
bool enabled
If the fog should be enabled or disabled.
Definition: FogComponent.h:32
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23