Made skyboxes not using Depth Buffer
Former-commit-id: 1370ab047a750f5f52bc905d26f4fc9892fbb69c
This commit is contained in:
@@ -8,6 +8,17 @@
|
||||
#include <memory>
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
namespace
|
||||
{
|
||||
NzRenderStates BuildRenderStates()
|
||||
{
|
||||
NzRenderStates states;
|
||||
states.parameters[nzRendererParameter_DepthBuffer] = false;
|
||||
|
||||
return states;
|
||||
}
|
||||
}
|
||||
|
||||
NzColorBackground::NzColorBackground(const NzColor& color) :
|
||||
m_color(color)
|
||||
{
|
||||
@@ -25,7 +36,7 @@ void NzColorBackground::Draw(const NzScene* scene) const
|
||||
{
|
||||
NazaraUnused(scene);
|
||||
|
||||
static NzRenderStates states;
|
||||
static NzRenderStates states(BuildRenderStates());
|
||||
|
||||
m_program->SendColor(m_program->GetUniformLocation(nzShaderUniform_MaterialDiffuse), m_color);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user