mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added screenshots.
This commit is contained in:
BIN
examples/35-dynamic/screenshot.png
Normal file
BIN
examples/35-dynamic/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
examples/36-sky/screenshot.png
Normal file
BIN
examples/36-sky/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 198 KiB |
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user