Skip to content

Commit

Permalink
Fixed skybox render bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AEspinosaDev committed Oct 29, 2024
1 parent 4229a9d commit 23aeb98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/renderpasses/forward_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,12 @@ void ForwardPass::render(uint32_t frameIndex, Scene *const scene, uint32_t prese
{
if (scene->get_skybox()->is_active())
{
vkCmdSetDepthTestEnable(cmd, VK_TRUE);
vkCmdSetDepthWriteEnable(cmd, VK_TRUE);
vkCmdSetCullMode(cmd,VK_CULL_MODE_NONE );

ShaderPass *shaderPass = m_shaderPasses["skybox"];

// Bind pipeline
vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, shaderPass->pipeline);

Expand Down

0 comments on commit 23aeb98

Please sign in to comment.