Euphoria
eu::render::Light Struct Reference

#include <light.h>

Public Types

enum class  Type { directional , point , spot }
 

Public Member Functions

 Light ()
 

Public Attributes

Type light_type
 
vec3f position
 
unit3f direction
 
Rgb ambient
 
Rgb diffuse
 
Rgb specular
 
Angle cutoff_angle_outer
 
Angle cutoff_angle_inner
 
LightAttenuation attenuation
 

Detailed Description

Definition at line 17 of file light.h.

Member Enumeration Documentation

◆ Type

Enumerator
directional 
point 
spot 

Definition at line 19 of file light.h.

Constructor & Destructor Documentation

◆ Light()

eu::render::Light::Light ( )

Definition at line 5 of file light.cc.

Member Data Documentation

◆ ambient

Rgb eu::render::Light::ambient

Definition at line 31 of file light.h.

◆ attenuation

LightAttenuation eu::render::Light::attenuation

Definition at line 37 of file light.h.

◆ cutoff_angle_inner

Angle eu::render::Light::cutoff_angle_inner

Definition at line 35 of file light.h.

◆ cutoff_angle_outer

Angle eu::render::Light::cutoff_angle_outer

Definition at line 34 of file light.h.

◆ diffuse

Rgb eu::render::Light::diffuse

Definition at line 32 of file light.h.

◆ direction

unit3f eu::render::Light::direction

Definition at line 30 of file light.h.

◆ light_type

Type eu::render::Light::light_type

Definition at line 28 of file light.h.

◆ position

vec3f eu::render::Light::position

Definition at line 29 of file light.h.

◆ specular

Rgb eu::render::Light::specular

Definition at line 33 of file light.h.


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