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.
|
// Render the bath model using the refraction shader.
|
||||||
m_BathModel->Render(m_Direct3D->GetDeviceContext());
|
m_BathModel->Render(m_Direct3D->GetDeviceContext());
|
||||||
|
|
||||||
result = m_ShaderManager->RenderRefractionShader(m_Direct3D->GetDeviceContext(), m_BathModel->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix, m_BathModel->GetTexture(0),
|
result = m_ShaderManager->RenderRefractionShader(m_Direct3D->GetDeviceContext(), m_BathModel->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix,
|
||||||
m_Lights[0]->GetDirection(), m_Light->GetAmbientColor(), m_Lights[0]->GetDiffuseColor(), clipPlane);
|
m_BathModel->GetTexture(0), m_Lights[0]->GetDirection(), m_Lights[0]->GetAmbientColor(), m_Lights[0]->GetDiffuseColor(), clipPlane);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -211,6 +211,7 @@
|
|||||||
<CopyFileToFolders Include="sprite04.tga" />
|
<CopyFileToFolders Include="sprite04.tga" />
|
||||||
<CopyFileToFolders Include="stone01.tga" />
|
<CopyFileToFolders Include="stone01.tga" />
|
||||||
<Image Include="wall.tga" />
|
<Image Include="wall.tga" />
|
||||||
|
<Image Include="water01.tga" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CopyFileToFolders Include="cube.txt" />
|
<CopyFileToFolders Include="cube.txt" />
|
||||||
|
@ -325,6 +325,9 @@
|
|||||||
<Image Include="KhaoticIcon.ico">
|
<Image Include="KhaoticIcon.ico">
|
||||||
<Filter>Assets</Filter>
|
<Filter>Assets</Filter>
|
||||||
</Image>
|
</Image>
|
||||||
|
<Image Include="water01.tga">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user