Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
point_light.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
6 // if the light should flicker or not. if set
7 // to false, it will be constantly at the
8 // max_intensity
10 // lowest intensity the light should reach during flickering.
11 // range is from 0-1
13 // highest intensity the light should reach during flickering.
14 // range is from 0-1. if flickering is false, this intensity
15 // will be used.
17
18 // lighting properties of that the light source
19 // emits
20 glm::vec3 ambient_color;
21 glm::vec3 diffuse_color;
22 glm::vec3 specular_color; // shiny effects
23
24 // these two affect the dropoff of the light intensity
25 // as distance increases
28};
Definition: point_light.hpp:5
glm::vec3 diffuse_color
Definition: point_light.hpp:21
float min_intensity
Definition: point_light.hpp:12
glm::vec3 ambient_color
Definition: point_light.hpp:20
glm::vec3 specular_color
Definition: point_light.hpp:22
bool flickering
Definition: point_light.hpp:9
float attenuation_linear
Definition: point_light.hpp:26
float max_intensity
Definition: point_light.hpp:16
float attenuation_quadratic
Definition: point_light.hpp:27