Restructure repository to include all source folders
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>
This commit is contained in:
53
GameTools/Zallad3D SceneClass/Shader_SelfShadow.cpp
Normal file
53
GameTools/Zallad3D SceneClass/Shader_SelfShadow.cpp
Normal file
@@ -0,0 +1,53 @@
|
||||
// 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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user