Fix: Water Shader
This commit is contained in:
parent
fd5b1f33b0
commit
7160ad922c
@ -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;
|
||||
|
@ -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" />
|
||||
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user