private:
Vector3 position = { 0.0f, 0.0f, 0.0f };
- float attenuation[3] = { 1.0f, 0.0f, 0.1f };
+ float attenuation[3] = { 1.0f, 0.0f, 1.0f };
void update_matrix();
void set_position(const Vector3 &);
const Vector3 &get_position();
+ /** Sets the constant, linear and quadratic attentuation factors for the
+ light. */
void set_attenuation(float, float, float);
+
const float *get_attenuation() const { return attenuation; }
protected: