1#include "FogComponent.h"
17 TypeDatabase::createType<FogComponent>().setBase<
Component>().setFields(fields);
Base class for Component instances.
static void registerType()
Register the type in the type system.
glm::vec4 color
Fog color.
float amount
Amount of fog to blend in.
float distance
Distance at which the fog is at its most dense.
bool enabled
If the fog should be enabled or disabled.
Field definition describing a single data member of a data structure.
Field & add(T attribute)
Adds the given attribute.
static FieldWrapper< Field, FieldType > create(const Name &name, FieldType ClassType::*field)
Creates a new field instance, returning a wrapper for type safe continuation style setup.
Contains code for composing and managing entities built from components.
Contains reflection support.
Tags an object as being able to represent a color.
Represents an unique name.