13 bool mEnabled =
false;
14 bool mColorChannel =
false;
15 uint8_t mMaterialSrc = GX_SRC_REG;
16 uint8_t mLightMask = 0;
17 uint8_t mDiffuseFunc = GX_DF_CLAMP;
18 uint8_t mAttenuationFunc = GX_AF_SPOT;
25 LightingState(
bool enable,
bool colorChannel, uint8_t matSrc, uint8_t lightMask, uint8_t diffFunc, uint8_t attenFunc) :
27 mColorChannel(colorChannel),
29 mLightMask(lightMask),
30 mDiffuseFunc(diffFunc),
31 mAttenuationFunc(attenFunc)
36 bool operator==(
const LightingState& other)
const
39 mEnabled == other.mEnabled &&
40 mColorChannel == other.mColorChannel &&
41 mMaterialSrc == other.mMaterialSrc &&
42 mLightMask == other.mLightMask &&
43 mDiffuseFunc == other.mDiffuseFunc &&
44 mAttenuationFunc == other.mAttenuationFunc;
47 bool operator!=(
const LightingState& other)
const
49 return !operator==(other);
55 void* mGpFifo =
nullptr;
56 World* mWorld =
nullptr;
59 LightingState mLighting;
60 uint8_t mSceneLightMask = 0;
61 uint8_t mSceneNumLights = 0;
65 bool mApplyFog =
true;
67 float mFogStartZ = 0.0f;
68 float mFogEndZ = 0.0f;
69 float mFogNearZ = 0.0f;
70 float mFogFarZ = 0.0f;
71 GXColor mFogColor = {0,0,0,0};
74 float mColorScale = 1.0f;
75 float mInvColorScale = 1.0f;
76 uint8_t mColorScaleEnum = GX_CS_SCALE_1;
#define MAX_LIGHTS_PER_DRAW
Definition Constants.h:24
Definition EngineTypes.h:212