ソースを参照

Vulkan: Fixing depth tests

Panagiotis Christopoulos Charitos 9 年 前
コミット
39125ee733
1 ファイル変更2 行追加0 行削除
  1. 2 0
      include/anki/gr/vulkan/CommandBufferImpl.inl.h

+ 2 - 0
include/anki/gr/vulkan/CommandBufferImpl.inl.h

@@ -23,6 +23,8 @@ inline void CommandBufferImpl::setViewport(
 	s.y = miny;
 	s.width = maxx - minx;
 	s.height = maxy - miny;
+	s.minDepth = 0.0;
+	s.maxDepth = 1.0;
 	vkCmdSetViewport(m_handle, 0, 1, &s);
 
 	VkRect2D scissor = {};