mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
18-ibl now makes use of clickable imguiCube().
This commit is contained in:
parent
d25990487e
commit
ba9651cb57
1 changed files with 12 additions and 5 deletions
|
@ -486,6 +486,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
bool m_specularIbl;
|
bool m_specularIbl;
|
||||||
bool m_showDiffColorWheel;
|
bool m_showDiffColorWheel;
|
||||||
bool m_showSpecColorWheel;
|
bool m_showSpecColorWheel;
|
||||||
|
bool m_crossCubemapPreview;
|
||||||
};
|
};
|
||||||
|
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
@ -505,6 +506,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
settings.m_specularIbl = true;
|
settings.m_specularIbl = true;
|
||||||
settings.m_showDiffColorWheel = false;
|
settings.m_showDiffColorWheel = false;
|
||||||
settings.m_showSpecColorWheel = false;
|
settings.m_showSpecColorWheel = false;
|
||||||
|
settings.m_crossCubemapPreview = false;
|
||||||
|
|
||||||
float time = 0.0f;
|
float time = 0.0f;
|
||||||
|
|
||||||
|
@ -523,7 +525,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
);
|
);
|
||||||
|
|
||||||
static int32_t rightScrollArea = 0;
|
static int32_t rightScrollArea = 0;
|
||||||
imguiBeginScrollArea("Settings", width - 256 - 10, 10, 256, 520, &rightScrollArea);
|
imguiBeginScrollArea("Settings", width - 256 - 10, 10, 256, 590, &rightScrollArea);
|
||||||
|
|
||||||
imguiLabel("Shade:");
|
imguiLabel("Shade:");
|
||||||
imguiSeparator();
|
imguiSeparator();
|
||||||
|
@ -534,8 +536,12 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
|
|
||||||
imguiSeparatorLine();
|
imguiSeparatorLine();
|
||||||
imguiSlider("Speed", settings.m_speed, 0.0f, 1.0f, 0.01f);
|
imguiSlider("Speed", settings.m_speed, 0.0f, 1.0f, 0.01f);
|
||||||
|
|
||||||
imguiSeparatorLine();
|
imguiSeparatorLine();
|
||||||
|
|
||||||
|
imguiSeparator();
|
||||||
|
imguiSlider("Exposure", settings.m_exposure, -8.0f, 8.0f, 0.01f);
|
||||||
|
imguiSeparator();
|
||||||
|
|
||||||
imguiLabel("Environment:");
|
imguiLabel("Environment:");
|
||||||
currentLightProbe = LightProbe::Enum(imguiChoose(currentLightProbe
|
currentLightProbe = LightProbe::Enum(imguiChoose(currentLightProbe
|
||||||
, "Wells"
|
, "Wells"
|
||||||
|
@ -545,11 +551,12 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
, "Grace"
|
, "Grace"
|
||||||
) );
|
) );
|
||||||
static float lod = 0.0f;
|
static float lod = 0.0f;
|
||||||
imguiCube(lightProbes[currentLightProbe].m_tex, lod, false);
|
if (imguiCube(lightProbes[currentLightProbe].m_tex, lod, settings.m_crossCubemapPreview))
|
||||||
|
{
|
||||||
|
settings.m_crossCubemapPreview = !settings.m_crossCubemapPreview;
|
||||||
|
}
|
||||||
imguiSlider("Texture LOD", lod, float(0.0f), 10.1f, 0.1f);
|
imguiSlider("Texture LOD", lod, float(0.0f), 10.1f, 0.1f);
|
||||||
|
|
||||||
imguiSeparator();
|
|
||||||
imguiSlider("Exposure", settings.m_exposure, -8.0f, 8.0f, 0.01f);
|
|
||||||
imguiEndScrollArea();
|
imguiEndScrollArea();
|
||||||
|
|
||||||
imguiBeginScrollArea("Settings", 10, 70, 256, 576, &leftScrollArea);
|
imguiBeginScrollArea("Settings", 10, 70, 256, 576, &leftScrollArea);
|
||||||
|
|
Loading…
Reference in a new issue