Stellarium 0.12.4
List of all members | Public Member Functions | Public Attributes
StelLight Struct Reference

Basic light source. More...

#include <StelLight.hpp>

Public Member Functions

bool operator== (const StelLight &rhs) const
 Is this light identical to another light? More...
 

Public Attributes

Vec3f position
 Position of the light. More...
 
Vec4f diffuse
 Difuse light color. More...
 
Vec4f ambient
 Ambient light color. More...
 

Detailed Description

Basic light source.

Used for lighting calculation when generating a lit sphere, and to pass light parameters to shaders.

(There is no builtin light functionality in StelRenderer - lights are done in shaders, or by manually setting vertex colors)

Definition at line 32 of file StelLight.hpp.

Member Function Documentation

bool StelLight::operator== ( const StelLight rhs) const
inline

Is this light identical to another light?

Definition at line 42 of file StelLight.hpp.

Member Data Documentation

Vec4f StelLight::ambient

Ambient light color.

Definition at line 39 of file StelLight.hpp.

Vec4f StelLight::diffuse

Difuse light color.

Definition at line 37 of file StelLight.hpp.

Vec3f StelLight::position

Position of the light.

Definition at line 35 of file StelLight.hpp.


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