#ifndef XGFXLIGHT_H
#define XGFXLIGHT_H

#include "xasset.h"

#include <QVector3D>
#include <QColor>

class XGfxLightDef;

class XGfxLight : public XAsset
{
public:
    explicit XGfxLight();
    ~XGfxLight();

    void ParseData(XDataStream *aStream) override;
    void Clear() override;

private:
    quint8 mType;
    quint8 mCanUseShadowMap;
    QColor mColor;
    QVector3D mDir;
    QVector3D mOrigin;
    float mRadius;
    float mCosHalfFovOuter;
    float mCosHalfFovInner;
    qint32 mExponent;
    quint32 mSpotShadowIndex;
    qint32 mDefPtr;
    XGfxLightDef *mDef;
};

#endif // XGFXLIGHT_H








