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:
48
GameTools/Zallad3D SceneClass/Shader_BumpSpec.cpp
Normal file
48
GameTools/Zallad3D SceneClass/Shader_BumpSpec.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
#include "ShaderScene.h"
|
||||
|
||||
#include "Shader_BumpSpec.h"
|
||||
#include "Shader_BumpSpecV.h"
|
||||
#include "Shader_BumpSpecP.h"
|
||||
|
||||
CShader_BumpSpec::CShader_BumpSpec() {
|
||||
m_pVertexShader = new CShader_BumpSpecV;
|
||||
m_pPixelShader = new CShader_BumpSpecP;
|
||||
|
||||
}
|
||||
CShader_BumpSpec::~CShader_BumpSpec() {
|
||||
if(m_pVertexShader != NULL) {
|
||||
delete m_pVertexShader;
|
||||
m_pVertexShader = NULL;
|
||||
}
|
||||
if(m_pPixelShader != NULL) {
|
||||
delete m_pPixelShader;
|
||||
m_pPixelShader = NULL;
|
||||
}
|
||||
}
|
||||
void CShader_BumpSpec::Apply() {
|
||||
|
||||
// ApplyState();
|
||||
|
||||
if(m_pVertexShader != NULL)
|
||||
m_pVertexShader->Apply();
|
||||
if(m_pPixelShader != NULL)
|
||||
m_pPixelShader->Apply();
|
||||
|
||||
}
|
||||
|
||||
void CShader_BumpSpec::UnApply() {
|
||||
ApplyOldState();
|
||||
|
||||
}
|
||||
void CShader_BumpSpec::SetNormalTexture(char *strTexName) {
|
||||
if(m_pPixelShader != NULL) {
|
||||
m_pPixelShader->SetNormalTexture(strTexName);
|
||||
|
||||
}
|
||||
}
|
||||
void CShader_BumpSpec::SetBumpScale(float fScale) {
|
||||
if(m_pVertexShader != NULL) {
|
||||
m_pVertexShader->SetBumpScale(fScale);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user