mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 11:38:08 +03:00
Reduced Vertex Count for Bars from 9 to 5
Added define for PI for shaders Added Primes to Vertex Hash generation Fixed Debris
This commit is contained in:
parent
e013ed4e24
commit
915b438f5a
17 changed files with 100 additions and 77 deletions
|
@ -950,8 +950,14 @@ namespace T5M::Renderer {
|
|||
m_primitiveBatch->Begin();
|
||||
m_context->VSSetShader(m_vsStatics.Get(), NULL, 0);
|
||||
m_context->PSSetShader(m_psStatics.Get(), NULL, 0);
|
||||
m_context->PSSetShaderResources(0, 1, (std::get<0>(m_staticsTextures[0])).ShaderResourceView.GetAddressOf());
|
||||
ID3D11SamplerState* sampler = m_states->AnisotropicClamp();
|
||||
if (!deb->isStatic) {
|
||||
m_context->PSSetShaderResources(0, 1, (std::get<0>(m_staticsTextures[deb->mesh.tex])).ShaderResourceView.GetAddressOf());
|
||||
|
||||
} else {
|
||||
m_context->PSSetShaderResources(0, 1, (std::get<0>(m_moveablesTextures[deb->mesh.tex])).ShaderResourceView.GetAddressOf());
|
||||
|
||||
}
|
||||
ID3D11SamplerState* sampler = m_states->LinearClamp();
|
||||
m_context->PSSetSamplers(0, 1, &sampler);
|
||||
//m_stCameraMatrices.View = View.Transpose();
|
||||
//m_stCameraMatrices.Projection = Projection.Transpose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue