mirror of https://github.com/bkaradzic/bgfx
Cleanup.
This commit is contained in:
parent
96ae04767c
commit
efa7984d01
|
@ -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…
Reference in New Issue