Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
959 B
C++
54 lines
959 B
C++
// Shader_SelfShadow.cpp: implementation of the CShader_SelfShadow class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "Shader_SelfShadow.h"
|
|
#include "Shader_SelfShadowP.h"
|
|
#include "Shader_SelfShadowV.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
CShader_SelfShadow::CShader_SelfShadow()
|
|
{
|
|
m_pPixelShader = new CShader_SelfShadowP;
|
|
m_pVertexShader = new CShader_SelfShadowV;
|
|
|
|
}
|
|
|
|
CShader_SelfShadow::~CShader_SelfShadow()
|
|
{
|
|
if(m_pPixelShader)
|
|
{
|
|
delete m_pPixelShader;
|
|
m_pPixelShader = NULL;
|
|
}
|
|
if(m_pVertexShader)
|
|
{
|
|
delete m_pVertexShader;
|
|
m_pVertexShader = NULL;
|
|
}
|
|
|
|
}
|
|
void CShader_SelfShadow::Apply()
|
|
{
|
|
if(m_pVertexShader)
|
|
{
|
|
m_pVertexShader->Apply();
|
|
}
|
|
if(m_pPixelShader)
|
|
{
|
|
m_pPixelShader->Apply();
|
|
|
|
}
|
|
}
|
|
void CShader_SelfShadow::UnApply()
|
|
{
|
|
ApplyOldState();
|
|
|
|
}
|
|
|
|
|
|
|