UPD: Active Depth Test
This commit is contained in:
parent
3e37c53779
commit
11497c6683
@ -11,8 +11,9 @@
|
|||||||
#include "model/TexturedModel.h"
|
#include "model/TexturedModel.h"
|
||||||
|
|
||||||
void Renderer::prepare(const Camera& camera) {
|
void Renderer::prepare(const Camera& camera) {
|
||||||
|
glEnable(GL_DEPTH_TEST);
|
||||||
glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
|
glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
const glm::mat4 viewMatrix = MathUtils::createViewMatrix(camera);
|
const glm::mat4 viewMatrix = MathUtils::createViewMatrix(camera);
|
||||||
staticShader.start();
|
staticShader.start();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user