Removed dummy z-only pass fragment shader (null fragment shader is supported now).

This commit is contained in:
Branimir Karadžić 2018-03-06 19:53:37 -08:00
parent 2250f45510
commit 628e2fcab7
4 changed files with 1 additions and 13 deletions

View File

@ -1,12 +0,0 @@
/*
* Copyright 2018 Kostas Anagnostou. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "../common/common.sh"
//dummy shader for occlusion buffer pass until bgfx supports rendering with null shader
void main()
{
gl_FragColor = vec4(0, 0, 0, 0);
}

View File

@ -685,7 +685,7 @@ public:
m_indirectBuffer = bgfx::createIndirectBuffer(m_noofProps);
// Create programs from shaders for occlusion pass.
m_programOcclusionPass = loadProgram("vs_gdr_render_occlusion", "fs_gdr_render_occlusion");
m_programOcclusionPass = loadProgram("vs_gdr_render_occlusion", NULL);
m_programDownscaleHiZ = loadProgram("cs_gdr_downscale_hi_z", NULL);
m_programOccludeProps = loadProgram("cs_gdr_occlude_props", NULL);
m_programStreamCompaction = loadProgram("cs_gdr_stream_compaction", NULL);