Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
Engine::LightComponent Struct Reference

Component representing a light source in the scene. More...

#include <LightComponent.hpp>

Public Attributes

LightType type = LightType::Directional
 Type classification of the light source.
glm::vec3 color { 1.0f, 1.0f, 1.0f }
 RGB light color vector.
float intensity = 1.0f
 Intensity multiplier for brightness.
float range = 10.0f
 Attenuation distance range for point and spot lights.

Detailed Description

Component representing a light source in the scene.

Member Data Documentation

◆ color

glm::vec3 Engine::LightComponent::color { 1.0f, 1.0f, 1.0f }

RGB light color vector.

◆ intensity

float Engine::LightComponent::intensity = 1.0f

Intensity multiplier for brightness.

◆ range

float Engine::LightComponent::range = 10.0f

Attenuation distance range for point and spot lights.

◆ type

LightType Engine::LightComponent::type = LightType::Directional

Type classification of the light source.


The documentation for this struct was generated from the following file: