PickingPassState done.

This commit is contained in:
Tleety
2015-12-10 16:06:25 +01:00
parent 37cf42527b
commit cefc4e5257
2 changed files with 29 additions and 0 deletions
@@ -0,0 +1,15 @@
#ifndef PickingPassState_h__
#define PickingPassState_h__
#include "Rendering/RenderState.h"
class PickingPassState : public RenderState
{
public:
PickingPassState();
~PickingPassState();
private:
};
#endif
+14
View File
@@ -0,0 +1,14 @@
#include "Rendering/PickingPassState.h"
PickingPassState::PickingPassState()
{
Enable(GL_DEPTH_TEST);
Enable(GL_CULL_FACE);
CullFace(GL_BACK);
glm::vec4 clearColor = glm::vec4(0.f);
ClearColor(clearColor);
Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}