Cleanup.
This commit is contained in:
parent
96ae04767c
commit
efa7984d01
@ -1871,7 +1871,7 @@ class ExampleShadowVolumes : public entry::AppI
|
||||
Args args(_argc, _argv);
|
||||
|
||||
m_viewState = ViewState(1280, 720);
|
||||
m_clearValues = {0x00000000, 1.0f, 0};
|
||||
m_clearValues = { 0x00000000, 1.0f, 0 };
|
||||
|
||||
m_debug = BGFX_DEBUG_TEXT;
|
||||
m_reset = BGFX_RESET_VSYNC;
|
||||
@ -1953,15 +1953,30 @@ class ExampleShadowVolumes : public entry::AppI
|
||||
m_cubeModel.m_program = m_programTextureLighting;
|
||||
m_cubeModel.m_texture = m_figureTex;
|
||||
|
||||
m_hplaneFieldModel.load(s_hplaneVertices, BX_COUNTOF(s_hplaneVertices), PosNormalTexcoordVertex::ms_decl, s_planeIndices, BX_COUNTOF(s_planeIndices) );
|
||||
m_hplaneFieldModel.load(s_hplaneVertices
|
||||
, BX_COUNTOF(s_hplaneVertices)
|
||||
, PosNormalTexcoordVertex::ms_decl
|
||||
, s_planeIndices
|
||||
, BX_COUNTOF(s_planeIndices)
|
||||
);
|
||||
m_hplaneFieldModel.m_program = m_programTextureLighting;
|
||||
m_hplaneFieldModel.m_texture = m_fieldstoneTex;
|
||||
|
||||
m_hplaneFigureModel.load(s_hplaneVertices, BX_COUNTOF(s_hplaneVertices), PosNormalTexcoordVertex::ms_decl, s_planeIndices, BX_COUNTOF(s_planeIndices) );
|
||||
m_hplaneFigureModel.load(s_hplaneVertices
|
||||
, BX_COUNTOF(s_hplaneVertices)
|
||||
, PosNormalTexcoordVertex::ms_decl
|
||||
, s_planeIndices
|
||||
, BX_COUNTOF(s_planeIndices)
|
||||
);
|
||||
m_hplaneFigureModel.m_program = m_programTextureLighting;
|
||||
m_hplaneFigureModel.m_texture = m_figureTex;
|
||||
|
||||
m_vplaneModel.load(s_vplaneVertices, BX_COUNTOF(s_vplaneVertices), PosNormalTexcoordVertex::ms_decl, s_planeIndices, BX_COUNTOF(s_planeIndices) );
|
||||
m_vplaneModel.load(s_vplaneVertices
|
||||
, BX_COUNTOF(s_vplaneVertices)
|
||||
, PosNormalTexcoordVertex::ms_decl
|
||||
, s_planeIndices
|
||||
, BX_COUNTOF(s_planeIndices)
|
||||
);
|
||||
m_vplaneModel.m_program = m_programColorTexture;
|
||||
m_vplaneModel.m_texture = m_flareTex;
|
||||
|
||||
@ -2011,8 +2026,8 @@ class ExampleShadowVolumes : public entry::AppI
|
||||
m_currentScene = Scene0;
|
||||
|
||||
// Set view matrix
|
||||
float initialPos[3] = { 3.0f, 20.0f, -58.0f };
|
||||
cameraCreate();
|
||||
float initialPos[3] = { 3.0f, 20.0f, -58.0f };
|
||||
cameraSetPosition(initialPos);
|
||||
cameraSetVerticalAngle(-0.25f);
|
||||
cameraGetViewMtx(m_viewState.m_view);
|
||||
|
Loading…
x
Reference in New Issue
Block a user