Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
|
class for holding data describing a dynamic point light. More...
#include <jimcpp/core/engine/SLight.hpp>
Public Attributes | |
SColorf | AmbientColor |
Ambient color emitted by the light. | |
SColorf | DiffuseColor |
Diffuse color emitted by the light. | |
SColorf | SpecularColor |
Specular color emitted by the light. | |
core::vector3df | Attenuation |
Attenuation factors (constant, linear, quadratic) | |
f32 | OuterCone |
The angle of the spot's outer cone. Ignored for other lights. | |
f32 | InnerCone |
The angle of the spot's inner cone. Ignored for other lights. | |
f32 | Falloff |
The light strength's decrease between Outer and Inner cone. Only for spot lights. | |
core::vector3df | Position |
Read-ONLY! Position of the light. | |
core::vector3df | Direction |
Read-ONLY! Direction of the light. | |
f32 | Radius |
Read-ONLY! Radius of light. Everything within this radius will be lighted. | |
E_LIGHT_TYPE | Type |
Read-ONLY! Type of the light. Default: ELT_POINT. | |
bool | CastShadows:1 |
Read-ONLY! Does the light cast shadows? | |
class for holding data describing a dynamic point light.
Jimcpp supports point lights, spot lights, and directional lights.
core::vector3df jpp::video::SLight::Attenuation |
Attenuation factors (constant, linear, quadratic)
Changes the light strength fading over distance. Can also be altered by setting the radius, Attenuation will change to (0,1.f/radius,0). Can be overridden after radius was set.
SColorf jpp::video::SLight::DiffuseColor |
Diffuse color emitted by the light.
This is the primary color you want to set.
core::vector3df jpp::video::SLight::Direction |
Read-ONLY! Direction of the light.
If Type is ELT_POINT, it is ignored. Changed via light scene node's rotation.
core::vector3df jpp::video::SLight::Position |
Read-ONLY! Position of the light.
If Type is ELT_DIRECTIONAL, it is ignored. Changed via light scene node's position.
f32 jpp::video::SLight::Radius |
Read-ONLY! Radius of light. Everything within this radius will be lighted.
On OpenGL light doesn't stop at radius. To get same light as in OpenGL in other drivers do set the radius to a large value like sqrt(FLT_MAX) and then set the Attenuation afterwards.
SColorf jpp::video::SLight::SpecularColor |
Specular color emitted by the light.
For details how to use specular highlights, see SMaterial::Shininess