Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
CHECKPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed Jul 24, 2022
1 parent 7e78c01 commit b8fe28d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/client/shadows/dynamicshadowsrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ void ShadowRenderer::initialize()
}

m_texture_format = m_shadow_map_texture_32bit
? video::ECOLOR_FORMAT::ECF_R32F
: video::ECOLOR_FORMAT::ECF_R16F;
? video::ECOLOR_FORMAT::ECF_D32
: video::ECOLOR_FORMAT::ECF_D24S8;

m_texture_format_color = m_shadow_map_texture_32bit
? video::ECOLOR_FORMAT::ECF_G32R32F
Expand Down Expand Up @@ -245,12 +245,12 @@ void ShadowRenderer::updateSMTextures()
if (m_shadow_map_colored)
frt = video::ECOLOR_FORMAT::ECF_A32B32G32R32F;
else
frt = video::ECOLOR_FORMAT::ECF_R32F;
frt = video::ECOLOR_FORMAT::ECF_A8R8G8B8;
} else {
if (m_shadow_map_colored)
frt = video::ECOLOR_FORMAT::ECF_A16B16G16R16F;
else
frt = video::ECOLOR_FORMAT::ECF_R16F;
frt = video::ECOLOR_FORMAT::ECF_A8R8G8B8;
}
shadowMapTextureFinal = getSMTexture(
std::string("shadowmap_final_") + itos(m_shadow_map_texture_size),
Expand Down
13 changes: 8 additions & 5 deletions src/client/shadows/dynamicshadowsrender.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ class ShadowRenderer
scene::ISceneManager *m_smgr{nullptr};
video::IVideoDriver *m_driver{nullptr};
Client *m_client{nullptr};
video::ITexture *shadowMapClientMap{nullptr};
video::ITexture *shadowMapClientMapFuture{nullptr};
video::ITexture *shadowMapTextureFinal{nullptr};
video::ITexture *shadowMapTextureDynamicObjects{nullptr};
video::ITexture *shadowMapTextureColors{nullptr};
video::ITexture *shadowMapColorMap{nullptr};
video::ITexture *shadowMapDepthMap{nullptr};
video::ITexture *shadowMapDepthMapFuture{nullptr};
video::ITexture *shadowMapColorMapFuture{nullptr};
video::ITexture *shadowMapDepthMapObjects{nullptr};
video::ITexture *shadowMapDepthMapFinal{nullptr};
video::IRenderTarget *shadowMapRenderTargetMap{nullptr};
video::IRenderTarget *shadowMapRenderTargetMapDynamicObjects{nullptr};

std::vector<DirectionalLight> m_light_list;
std::vector<NodeToApply> m_shadow_node_array;
Expand Down

0 comments on commit b8fe28d

Please sign in to comment.