Skip to content

Commit

Permalink
Fix rendering the Atmospheric Scattering (mistakenly created copies b…
Browse files Browse the repository at this point in the history
…y casting)
  • Loading branch information
kirides committed Dec 23, 2019
1 parent 32975bc commit af2d347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions D3D11Engine/D3D11GraphicsEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3830,8 +3830,8 @@ XRESULT D3D11GraphicsEngine::DrawSky() {
world = XMMatrixTranspose(scale * world);

// Apply world matrix
DirectX::SimpleMath::Matrix d3dxWorld;
XMStoreFloat4x4(&(Matrix)d3dxWorld, world);
Matrix d3dxWorld;
XMStoreFloat4x4(&d3dxWorld, world);
Engine::GAPI->SetWorldTransform(d3dxWorld);
Engine::GAPI->SetViewTransform(view);

Expand All @@ -3849,7 +3849,7 @@ XRESULT D3D11GraphicsEngine::DrawSky() {
ActivePS->GetConstantBuffer()[0]->BindToPixelShader(1);

VS_ExConstantBuffer_PerInstance cbi;
XMStoreFloat4x4(&(Matrix)cbi.World, world);
XMStoreFloat4x4(&cbi.World, world);
ActiveVS->GetConstantBuffer()[1]->UpdateBuffer(&cbi);
ActiveVS->GetConstantBuffer()[1]->BindToVertexShader(1);

Expand Down

0 comments on commit af2d347

Please sign in to comment.