Minor: Water shader Terminer

This commit is contained in:
GolfOcean334
2024-04-22 17:35:40 +02:00
parent 5aa2621a76
commit fd5b1f33b0
5 changed files with 14 additions and 202 deletions

View File

@@ -10,7 +10,6 @@ ShaderManagerClass::ShaderManagerClass()
m_SpecMapShader = 0;
m_TransparentShader = 0;
m_LightShader = 0;
m_LightShaderWater = 0;
m_LightMapShader = 0;
m_RefractionShader = 0;
m_WaterShader = 0;
@@ -103,15 +102,6 @@ bool ShaderManagerClass::Initialize(ID3D11Device* device, HWND hwnd)
return false;
}
// Create and initialize the light shader object.
m_LightShaderWater = new LightShaderClass;
result = m_LightShaderWater->Initialize(device, hwnd);
if (!result)
{
return false;
}
// Create and initialize the light map shader object.
m_LightMapShader = new LightMapShaderClass;
@@ -208,14 +198,6 @@ void ShaderManagerClass::Shutdown()
m_LightShader = 0;
}
// Release the light shader object.
if (m_LightShaderWater)
{
m_LightShaderWater->Shutdown();
delete m_LightShaderWater;
m_LightShaderWater = 0;
}
// Release the light map shader object.
if (m_LightMapShader)
{
@@ -366,21 +348,6 @@ bool ShaderManagerClass::RenderlightShader(ID3D11DeviceContext* deviceContext, i
return true;
}
bool ShaderManagerClass::RenderlightShaderWater(ID3D11DeviceContext* deviceContext, int indexCount, XMMATRIX worldMatrix, XMMATRIX viewMatrix, XMMATRIX projectionMatrix,
ID3D11ShaderResourceView* texture, XMFLOAT4 getDirection[], XMFLOAT4 ambientColor[], XMFLOAT4 diffuseColor[])
{
bool result;
result = m_LightShaderWater->Render(deviceContext, indexCount, worldMatrix, viewMatrix, projectionMatrix, texture, getDirection, ambientColor, diffuseColor);
if (!result)
{
return false;
}
return true;
}
bool ShaderManagerClass::RenderlightMapShader(ID3D11DeviceContext* deviceContext, int indexCount, XMMATRIX worldMatrix, XMMATRIX viewMatrix,
XMMATRIX projectionMatrix, ID3D11ShaderResourceView* texture1, ID3D11ShaderResourceView* texture2)
{