EvilEngine/DYNA/effect:light: Difference between revisions

format
(format)
 
Line 8:
</onlyinclude>
{{AutoDynaInfobox}}
 
==Format==
 
<source lang=cpp>
struct xLightAsset : xDynAsset
{
eLightType lightType;
uint32 lightEffectID;
float32 lightEffectSpeed;
uint32 lightFlags;
_xFColor lightColor;
xSphere lightSphere;
uint32 attachID;
uint32 lightCardID;
float32 lightCardScale;
};
</source>
 
<source lang=cpp>
enum eLightType
{
eLightType_Ambient,
eLightType_Spotlight,
eLightType_Directional,
eLightType_Point
};
</source>
 
<source lang=cpp>
struct xSphere
{
xVec3 center;
float32 r;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || eLightType || '''lightType''' ||
|-
| 0x04 || [[AssetID]] || '''lightEffectID''' ||
|-
| 0x08 || float32 || '''lightEffectSpeed''' ||
|-
| 0x0C || uint32 || '''lightFlags''' ||
|-
| 0x10 || float32 || '''redMult''' ||
|-
| 0x14 || float32 || '''greenMult''' ||
|-
| 0x18 || float32 || '''blueMult''' ||
|-
| 0x1C || float32 || '''seeThru''' ||
|-
| 0x20 || [[Vector3]] || '''center''' ||
|-
| 0x2C || float32 || '''r''' ||
|-
| 0x30 || [[AssetID]] || '''attachID''' ||
|-
| 0x34 || [[AssetID]] || '''lightCardID''' ||
|-
| 0x38 || float32 || '''lightCardScale''' ||
|}
 
{{DynaAssets}}