2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XSUNLIGHTPARSEPARAMS_H
|
|
|
|
|
#define XSUNLIGHTPARSEPARAMS_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
#include <QColor>
|
|
|
|
|
#include <QVector3D>
|
|
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
class XSunLightParseParams : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XSunLightParseParams();
|
2025-09-05 18:35:17 -04:00
|
|
|
~XSunLightParseParams();
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
void ParseData(QDataStream *aStream) override;
|
2025-09-05 18:35:17 -04:00
|
|
|
void Clear() override;
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
private:
|
2025-09-05 18:35:17 -04:00
|
|
|
QString mName;
|
|
|
|
|
float mAmbientScale;
|
|
|
|
|
QColor mAmbientColor;
|
|
|
|
|
float mDiffuseFraction;
|
|
|
|
|
float mSunLight;
|
|
|
|
|
QColor mSunColor;
|
|
|
|
|
QColor mDiffuseColor;
|
|
|
|
|
bool mDiffuseColorHasBeenSet;
|
|
|
|
|
QVector3D mAngles;
|
2025-08-17 13:14:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XSUNLIGHTPARSEPARAMS_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|