Class FogComponent

Inheritance Relationships

Base Type

Class Documentation

class FogComponent : public Component

Adds fog and obscures objects w.r.t the near and far values.

Public Functions

FogComponent(Entity &owner, const JSON::json &data)
Color getColor() const
float getNearDistance() const
float getFarDistance() const
JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.