added main menus, improved shading
This commit is contained in:
@@ -47,7 +47,12 @@ void CBrushEntity::Think( float fDelta )
|
||||
|
||||
};
|
||||
|
||||
void CBrushEntity::Sync( void *pData, uint32_t nDataSize )
|
||||
void CBrushEntity::SendToServer()
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
void CBrushEntity::RecieveFromServer( void *pData, uint32_t nDataSize )
|
||||
{
|
||||
|
||||
};
|
||||
@@ -149,6 +154,9 @@ void CBrushRendering::Init()
|
||||
|
||||
void CBrushRendering::Frame( float fDelta )
|
||||
{
|
||||
g_BrushPipeline->BindData(0, IRenderer::GetCameraMatrix(), 0);
|
||||
g_BrushPipeline->PushBindings();
|
||||
|
||||
IRenderer::ResetState();
|
||||
IRenderer::SetDepthMode(DEPTH_MODE_LESS);
|
||||
IRenderer::BindPipeline(g_BrushPipeline);
|
||||
@@ -160,8 +168,6 @@ void CBrushRendering::Frame( float fDelta )
|
||||
} constants;
|
||||
glm_mat4_identity(constants.i);
|
||||
IRenderer::SetConstants(sizeof(constants), &constants);
|
||||
IRenderer::BindData(0, IRenderer::GetCameraMatrix(), 0);
|
||||
IRenderer::PushBindings();
|
||||
for (auto &v: g_BrushVertices)
|
||||
{
|
||||
IRenderer::Draw(v, 0);
|
||||
|
||||
Reference in New Issue
Block a user