CryEngineDecalInfo

C++
struct CryEngineDecalInfo {
  SDecalOwnerInfo ownerInfo;
  Vec3 vPos;
  Vec3 vNormal;
  float fSize;
  float fLifeTime;
  float fAngle;
  struct IStatObj * pIStatObj;
  Vec3 vHitDirection;
  float fGrowTime, fGrowTimeAlpha;
  unsigned int nGroupId;
  bool bSkipOverlappingTest;
  bool bAssemble;
  bool bForceEdge;
  bool bForceSingleOwner;
  bool bDeferred;
  uint8 sortPrio;
  char szMaterialName[_MAX_PATH];
  bool preventDecalOnGround;
  const Matrix33* pExplicitRightUpFront;
};
File

CryEngineDecalInfo.h

CryEngineDecalInfo::bAssemble Data Member
C++
bool bAssemble;
Description

Assemble to bigger decals if more than 1 decal is on the same place

CryEngineDecalInfo::bDeferred Data Member
C++
bool bDeferred;
CryEngineDecalInfo::bForceEdge Data Member
C++
bool bForceEdge;
Description

force the decal to the nearest edge of the owner mesh and project it accordingly

CryEngineDecalInfo::bForceSingleOwner Data Member
C++
bool bForceSingleOwner;
Description

Do not attempt to cast the decal into the environment even if it's large enough

CryEngineDecalInfo::bSkipOverlappingTest Data Member
C++
bool bSkipOverlappingTest;
Description

Always spawn decals even if there are a lot of other decals in same place

CryEngineDecalInfo::fAngle Data Member
C++
float fAngle;
Description

Angle of rotation

CryEngineDecalInfo::fGrowTime Data Member
C++
float fGrowTime;
CryEngineDecalInfo::fGrowTimeAlpha Data Member
C++
float fGrowTimeAlpha;
CryEngineDecalInfo::fLifeTime Data Member
C++
float fLifeTime;
Description

Decal life time (in seconds)

CryEngineDecalInfo::fSize Data Member
C++
float fSize;
Description

Decal size

CryEngineDecalInfo::nGroupId Data Member
C++
unsigned int nGroupId;
Description

Used for multi-component decals

CryEngineDecalInfo::ownerInfo Data Member
C++
SDecalOwnerInfo ownerInfo;
CryEngineDecalInfo::pExplicitRightUpFront Data Member
C++
const Matrix33* pExplicitRightUpFront;
Description

mainly for decal placement support

CryEngineDecalInfo::pIStatObj Data Member
C++
struct IStatObj * pIStatObj;
Description

Decal geometry

CryEngineDecalInfo::preventDecalOnGround Data Member
C++
bool preventDecalOnGround;
Description

mainly for decal placement support

CryEngineDecalInfo::sortPrio Data Member
C++
uint8 sortPrio;
CryEngineDecalInfo::szMaterialName Data Member
C++
char szMaterialName[_MAX_PATH];
Description

name of material used for rendering the decal (in favor of szTextureName/nTid and the default decal shader)

CryEngineDecalInfo::vHitDirection Data Member
C++
Vec3 vHitDirection;
Description

Direction from weapon/player position to decal position (bullet direction)

CryEngineDecalInfo::vNormal Data Member
C++
Vec3 vNormal;
Description

Decal/face normal

CryEngineDecalInfo::vPos Data Member
C++
Vec3 vPos;
Description

Decal position (world coordinates)

CryEngineDecalInfo::CryEngineDecalInfo Constructor
C++
CryEngineDecalInfo();
Description

the constructor fills in some non-obligatory fields; the other fields must be filled in by the client

CryEngineDecalInfo::GetMemoryUsage Method
C++
void GetMemoryUsage(ICrySizer * pSizer) const;