|
Brenta Engine 1.2
|
Public Member Functions | |
| void | apply (int light_number) override |
| PhongPointLight & | set_ambient (glm::vec3 ambient) |
| PhongPointLight & | set_diffuse (glm::vec3 diffuse) |
| PhongPointLight & | set_specular (glm::vec3 specular) |
| PhongPointLight & | set_position (glm::vec3 position) |
| PhongPointLight & | set_strength (float strength) |
| PhongPointLight & | set_constant (float constant) |
| PhongPointLight & | set_linear (float linear) |
| PhongPointLight & | set_quadratic (float quadratic) |
Data Fields | |
| glm::vec3 | ambient = glm::vec3(0.1f, 0.1f, 0.1f) |
| glm::vec3 | diffuse = glm::vec3(0.5f, 0.5f, 0.5f) |
| glm::vec3 | specular = glm::vec3(1.0f, 1.0f, 1.0f) |
Data Fields inherited from brenta::PointLight | |
| glm::vec3 | position = glm::vec3(0.0) |
| float | strength = 1.0f |
| float | constant = 1.0f |
| float | linear = 0.09f |
| float | quadratic = 0.00032f |
|
overridevirtual |
Implements brenta::PointLight.
| PhongPointLight & PhongPointLight::set_ambient | ( | glm::vec3 | ambient | ) |
| PhongPointLight & PhongPointLight::set_constant | ( | float | constant | ) |
| PhongPointLight & PhongPointLight::set_diffuse | ( | glm::vec3 | diffuse | ) |
| PhongPointLight & PhongPointLight::set_linear | ( | float | linear | ) |
| PhongPointLight & PhongPointLight::set_position | ( | glm::vec3 | position | ) |
| PhongPointLight & PhongPointLight::set_quadratic | ( | float | quadratic | ) |
| PhongPointLight & PhongPointLight::set_specular | ( | glm::vec3 | specular | ) |
| PhongPointLight & PhongPointLight::set_strength | ( | float | strength | ) |
| glm::vec3 brenta::PhongPointLight::ambient = glm::vec3(0.1f, 0.1f, 0.1f) |
| glm::vec3 brenta::PhongPointLight::diffuse = glm::vec3(0.5f, 0.5f, 0.5f) |
| glm::vec3 brenta::PhongPointLight::specular = glm::vec3(1.0f, 1.0f, 1.0f) |