Added lights bounding box

Former-commit-id: 9ab45181c8b0586e9d4040d48d756683e88dd8fe
This commit is contained in:
Lynix
2013-03-13 17:10:58 +01:00
parent 1e57c00fa1
commit 593fec134d
2 changed files with 110 additions and 8 deletions

View File

@@ -47,17 +47,18 @@ class NAZARA_API NzLight : public NzSceneNode
NzLight& operator=(const NzLight& light);
private:
void Invalidate();
void Register();
void Unregister();
void UpdateFrustum();
void UpdateBoundingBox() const;
bool VisibilityTest(const NzFrustumf& frustum);
nzLightType m_type;
NzBoundingBoxf m_boundingBox;
mutable NzBoundingBoxf m_boundingBox;
NzColor m_ambientColor;
NzColor m_diffuseColor;
NzColor m_specularColor;
bool m_boundingBoxUpdated;
mutable bool m_boundingBoxUpdated;
float m_attenuation;
float m_innerAngle;
float m_outerAngle;