Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::AreaLight Struct Reference

Realistic light that emits from a rectangle shape (example: screens, neons) More...

#include <OxygenEngine/scene/lighting.h>

Public Attributes

glm::vec3 color = glm::vec3(1.0)
 Light color.
 
bool double_sided
 Does the light should be displayed on both sides.
 
bool is_active = true
 Is the light on.
 
std::array< glm::vec3, 4 > points
 Light quad bounds (in world space)
 

Detailed Description

Realistic light that emits from a rectangle shape (example: screens, neons)

Member Data Documentation

◆ points

std::array<glm::vec3, 4> oe::scene::AreaLight::points

Light quad bounds (in world space)

Todo: Front face is considered to be from clockwise order?


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