Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -697,14 +697,11 @@ void W3DTreeBuffer::loadTreesInVertexAndIndexBuffers(RefRenderObjListIterator *p

if (m_shadow == nullptr && TheW3DProjectedShadowManager) {
Shadow::ShadowTypeInfo shadowInfo;
shadowInfo.m_ShadowName[0] = 0;
shadowInfo.allowUpdates=FALSE; //shadow image will never update
shadowInfo.allowWorldAlign=TRUE; //shadow image will wrap around world objects
shadowInfo.m_type = (ShadowType)SHADOW_DECAL;
shadowInfo.m_sizeX=20;
shadowInfo.m_sizeY=20;
shadowInfo.m_offsetX=0;
shadowInfo.m_offsetY=0;
m_shadow = TheW3DProjectedShadowManager->createDecalShadow(&shadowInfo);
}

Expand Down
12 changes: 12 additions & 0 deletions Generals/Code/GameEngine/Include/GameClient/Shadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ class Shadow

struct ShadowTypeInfo
{
ShadowTypeInfo()
{
m_ShadowName[0] = '\0';
m_type = SHADOW_NONE;
allowUpdates = false;
allowWorldAlign = false;
m_sizeX = 0.0f;
m_sizeY = 0.0f;
m_offsetX = 0.0f;
m_offsetY = 0.0f;
}

char m_ShadowName[64]; //when set, overrides the default model shadow (used mostly for Decals).
ShadowType m_type; //type of shadow
Bool allowUpdates; //whether to update the shadow image when object/light moves.
Expand Down
12 changes: 12 additions & 0 deletions GeneralsMD/Code/GameEngine/Include/GameClient/Shadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ class Shadow

struct ShadowTypeInfo
{
ShadowTypeInfo()
{
m_ShadowName[0] = '\0';
m_type = SHADOW_NONE;
allowUpdates = false;
allowWorldAlign = false;
m_sizeX = 0.0f;
m_sizeY = 0.0f;
m_offsetX = 0.0f;
m_offsetY = 0.0f;
}

char m_ShadowName[64]; //when set, overrides the default model shadow (used mostly for Decals).
ShadowType m_type; //type of shadow
Bool allowUpdates; //whether to update the shadow image when object/light moves.
Expand Down
Loading