Added screenshots.

This commit is contained in:
Branimir Karadžić
2017-10-03 20:59:33 -07:00
parent a6a689b235
commit 7737343427
3 changed files with 38 additions and 38 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

View File

@@ -573,10 +573,13 @@ namespace
// Set view 0 default viewport.
bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height));
cameraGetViewMtx(m_viewMtx);
bx::mtxProj(m_projMtx, 60.0f, float(m_width) / float(m_height), 0.1f, 2000.0f, bgfx::getCaps()->homogeneousDepth);
float view[16];
cameraGetViewMtx(view);
bgfx::setViewTransform(0, m_viewMtx, m_projMtx);
float proj[16];
bx::mtxProj(proj, 60.0f, float(m_width) / float(m_height), 0.1f, 2000.0f, bgfx::getCaps()->homogeneousDepth);
bgfx::setViewTransform(0, view, proj);
Color sunLuminanceXYZ = m_sunLuminanceXYZ.GetValue(m_time);
Color sunLuminanceRGB = XYZToRGB(sunLuminanceXYZ);
@@ -639,9 +642,6 @@ namespace
DynamicValueController m_sunLuminanceXYZ;
DynamicValueController m_skyLuminanceXYZ;
float m_viewMtx[16];
float m_projMtx[16];
uint32_t m_width;
uint32_t m_height;
uint32_t m_debug;
@@ -659,4 +659,4 @@ namespace
} // namespace
ENTRY_IMPLEMENT_MAIN(ExampleProceduralSky, "36-sky", "Dynamic sky example.");
ENTRY_IMPLEMENT_MAIN(ExampleProceduralSky, "36-sky", "Perez dynamic sky model.");