Skip to content

Commit

Permalink
Update GeometryFX sample
Browse files Browse the repository at this point in the history
1. Move the camera start position inside the model, so that you aren't
just staring at a box when you start up.
2. Turn off the small primitive filter by default, as it costs more than
it saves for this particular model. This does not mean the small
primitive filter is not useful. It just means that this relatively
simple example scene does not have a lot of small primitives.
  • Loading branch information
jstewart-amd committed Mar 4, 2016
1 parent b5198af commit a165102
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions amd_geometryfx_sample/src/GeometryFX_Sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class Application
, shadowMapResolution(-1)
, pipelineStatsTrianglesIn(0)
, pipelineStatsTrianglesOut(0)
, enabledFilters(0xFF)
, enabledFilters(0xFF & ~AMD::GeometryFX_FilterSmallPrimitives)
, benchmarkMode(false)
, benchmarkFrameCount(32)
, benchmarkActive(false)
Expand Down Expand Up @@ -1113,7 +1113,8 @@ HRESULT CALLBACK OnD3D11CreateDevice(

// Setup the camera's view parameters
g_Camera.SetViewParams(
XMVectorSet(0.0f, 0.0f, -2.0f, 1.0f), XMVectorSet(0.0f, 0.0f, 0.0f, 1.0f));
XMVectorSet(-0.409059107f, -0.047107596f, 0.101811841f, 0.0f),
XMVectorSet( 0.553191245f, -0.239557669f, -0.090638265f, 0.0f));
if (g_Application.shadowMapResolution == -1)
{
// Setup the camera's projection parameters
Expand Down

0 comments on commit a165102

Please sign in to comment.