Euphoria
Public Attributes | List of all members
eu::render::FrustumLight Struct Reference

Like a spotlight but can be positioned with a transform, supports light cookies and can use a "view frustum" when culling. More...

Public Attributes

v3 position = {0.0f, 0.0f, 0.0f}
 
Ypr rotation = {0.0_rad, 0.0_rad, 0.0_rad}
 
An fov = 10.0_deg
 
float aspect = 1.0
 
float min_range = 10.0f
 
float max_range = 20.0f
 
core::SCurve curve = core::SCurve::light_curve()
 curve and ui, needs to be trimmed down for actual renderer
 
Rgb color = colors::white
 
float specular_strength = 1.0f
 
float diffuse_strength = 1.0f
 
std::shared_ptr< Texture2dcookie
 

Detailed Description

Like a spotlight but can be positioned with a transform, supports light cookies and can use a "view frustum" when culling.

Definition at line 150 of file world.h.

Member Data Documentation

◆ aspect

float eu::render::FrustumLight::aspect = 1.0

Definition at line 155 of file world.h.

◆ color

Rgb eu::render::FrustumLight::color = colors::white

Definition at line 161 of file world.h.

◆ cookie

std::shared_ptr<Texture2d> eu::render::FrustumLight::cookie

Definition at line 165 of file world.h.

◆ curve

core::SCurve eu::render::FrustumLight::curve = core::SCurve::light_curve()

curve and ui, needs to be trimmed down for actual renderer

Definition at line 159 of file world.h.

◆ diffuse_strength

float eu::render::FrustumLight::diffuse_strength = 1.0f

Definition at line 163 of file world.h.

◆ fov

An eu::render::FrustumLight::fov = 10.0_deg

Definition at line 154 of file world.h.

◆ max_range

float eu::render::FrustumLight::max_range = 20.0f

Definition at line 158 of file world.h.

◆ min_range

float eu::render::FrustumLight::min_range = 10.0f

Definition at line 157 of file world.h.

◆ position

v3 eu::render::FrustumLight::position = {0.0f, 0.0f, 0.0f}

Definition at line 152 of file world.h.

◆ rotation

Ypr eu::render::FrustumLight::rotation = {0.0_rad, 0.0_rad, 0.0_rad}

Definition at line 153 of file world.h.

◆ specular_strength

float eu::render::FrustumLight::specular_strength = 1.0f

Definition at line 162 of file world.h.


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