Fix: Water Shader

This commit is contained in:
GolfOcean334 2024-04-22 17:56:45 +02:00
parent fd5b1f33b0
commit 7160ad922c
3 changed files with 6 additions and 2 deletions

View File

@ -727,8 +727,8 @@ bool ApplicationClass::RenderRefractionToTexture()
// Render the bath model using the refraction shader.
m_BathModel->Render(m_Direct3D->GetDeviceContext());
result = m_ShaderManager->RenderRefractionShader(m_Direct3D->GetDeviceContext(), m_BathModel->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix, m_BathModel->GetTexture(0),
m_Lights[0]->GetDirection(), m_Light->GetAmbientColor(), m_Lights[0]->GetDiffuseColor(), clipPlane);
result = m_ShaderManager->RenderRefractionShader(m_Direct3D->GetDeviceContext(), m_BathModel->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix,
m_BathModel->GetTexture(0), m_Lights[0]->GetDirection(), m_Lights[0]->GetAmbientColor(), m_Lights[0]->GetDiffuseColor(), clipPlane);
if (!result)
{
return false;

View File

@ -211,6 +211,7 @@
<CopyFileToFolders Include="sprite04.tga" />
<CopyFileToFolders Include="stone01.tga" />
<Image Include="wall.tga" />
<Image Include="water01.tga" />
</ItemGroup>
<ItemGroup>
<CopyFileToFolders Include="cube.txt" />

View File

@ -325,6 +325,9 @@
<Image Include="KhaoticIcon.ico">
<Filter>Assets</Filter>
</Image>
<Image Include="water01.tga">
<Filter>Assets</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />