SRendParams

C++
struct SRendParams {
  Matrix34 * pMatrix;
  struct SInstancingInfo * pInstInfo;
  Matrix34 * pPrevMatrix;
  uint64 m_ShadowMapCasters;
  IVisArea* m_pVisArea;
  IMaterial * pMaterial;
  IFoliage * pFoliage;
  IRenderMesh * pWeights;
  struct IRenderNode * pRenderNode;
  void* pInstance;
  struct SSectorTextureSet * pTerrainTexInfo;
  struct CRNTmpData ** ppRNTmpData;
  DynArray<SShaderParam>* pShaderParams;
  ColorF AmbientColor;
  float fCustomSortOffset;
  float fAlpha;
  float fDistance;
  float fRenderQuality;
  uint32 nDLightMask;
  int32 dwFObjFlags;
  uint32 nMaterialLayersBlend;
  uint32 nVisionParams;
  uint32 nHUDSilhouettesParams;
  uint32 pLayerEffectParams;
  uint64 nSubObjHideMask;
  float fCustomData[4];
  int16 nTextureID;
  uint16 nCustomFlags;
  uint8 nCustomData;
  uint8 nDissolveRef;
  uint8 nVisAreaStencilRef;
  uint8 nAfterWater;
  uint8 nMaterialLayers;
  uint8 nLod;
  uint8 nRenderList;
  uint32 rendItemSorter;
};
File

IRenderer.h

Description

Structure used to pass render parameters to Render() functions of IStatObj and ICharInstance.

SRendParams::AmbientColor Data Member

Ambient color for the object.

C++
ColorF AmbientColor;
SRendParams::dwFObjFlags Data Member

Approximate information about the lights not included into nDLightMask. SRestLightingInfo restLightInfo;

CRenderObject flags.

C++
int32 dwFObjFlags;
SRendParams::fAlpha Data Member

Object alpha.

C++
float fAlpha;
SRendParams::fCustomData Data Member
C++
float fCustomData[4];
Description

Defines per object float custom data

SRendParams::fCustomSortOffset Data Member

Custom sorting offset.

C++
float fCustomSortOffset;
SRendParams::fDistance Data Member

Distance from camera.

C++
float fDistance;
SRendParams::fRenderQuality Data Member

Quality of shaders rendering.

C++
float fRenderQuality;
SRendParams::m_pVisArea Data Member
C++
IVisArea* m_pVisArea;
Description

VisArea that contains this object, used for RAM-ambient cube query

SRendParams::m_ShadowMapCasters Data Member

List of shadow map casters.

C++
uint64 m_ShadowMapCasters;
SRendParams::nAfterWater Data Member

Custom offset for sorting by distance.

C++
uint8 nAfterWater;
SRendParams::nCustomData Data Member
C++
uint8 nCustomData;
Description

Defines per object custom data

SRendParams::nCustomFlags Data Member
C++
uint16 nCustomFlags;
Description

Defines per object custom flags

SRendParams::nDissolveRef Data Member

Defines per object DissolveRef value if used by shader.

C++
uint8 nDissolveRef;
SRendParams::nDLightMask Data Member

Light mask to specify which light to use on the object.

C++
uint32 nDLightMask;
SRendParams::nHUDSilhouettesParams Data Member

Vision modes params

C++
uint32 nHUDSilhouettesParams;
SRendParams::nLod Data Member

LOD transition states slot id. uint8 nLodTransSlotId;

LOD transition states slot id.

C++
uint8 nLod;
SRendParams::nMaterialLayers Data Member

Material layers bitmask -> which material layers are active.

C++
uint8 nMaterialLayers;
SRendParams::nMaterialLayersBlend Data Member

Material layers blending amount

C++
uint32 nMaterialLayersBlend;
SRendParams::nRenderList Data Member

Force a sort value for render elements.

C++
uint8 nRenderList;
SRendParams::nSubObjHideMask Data Member

Defines what peaces of pre-broken geometry has to be rendered

C++
uint64 nSubObjHideMask;
SRendParams::nTextureID Data Member
C++
int16 nTextureID;
Description

Custom TextureID

SRendParams::nVisAreaStencilRef Data Member

per-instance vis area stencil ref id

C++
uint8 nVisAreaStencilRef;
SRendParams::nVisionParams Data Member

Vision modes params

C++
uint32 nVisionParams;
SRendParams::pFoliage Data Member

Skeleton implementation for bendable foliage.

C++
IFoliage * pFoliage;
SRendParams::pInstance Data Member

Unique object Id for objects identification in renderer.

C++
void* pInstance;
SRendParams::pInstInfo Data Member
C++
struct SInstancingInfo * pInstInfo;
SRendParams::pLayerEffectParams Data Member
C++
uint32 pLayerEffectParams;
Description

Layer effects

SRendParams::pMaterial Data Member

Override material.

C++
IMaterial * pMaterial;
SRendParams::pMatrix Data Member

object transformations.

C++
Matrix34 * pMatrix;
SRendParams::pPrevMatrix Data Member

object previous transformations - motion blur specific.

C++
Matrix34 * pPrevMatrix;
SRendParams::ppRNTmpData Data Member

storage for LOD transition states.

C++
struct CRNTmpData ** ppRNTmpData;
SRendParams::pRenderNode Data Member

Object Id for objects identification in renderer.

C++
struct IRenderNode * pRenderNode;
SRendParams::pShaderParams Data Member

dynamic render data object which can be set by the game

C++
DynArray<SShaderParam>* pShaderParams;
SRendParams::pTerrainTexInfo Data Member

TerrainTexInfo for grass.

C++
struct SSectorTextureSet * pTerrainTexInfo;
SRendParams::pWeights Data Member

Weights stream for deform morphs.

C++
IRenderMesh * pWeights;
SRendParams::rendItemSorter Data Member

Special sorter to ensure correct ordering even if parts of the 3DEngine are run in parallel

C++
uint32 rendItemSorter;
SRendParams::SRendParams Constructor
C++
SRendParams();