now disable outline renderer, will use other method to impl, fixed BRDF_LUT load error, add internal api for EditorCamera to set and get clips
This commit is contained in:
@ -582,6 +582,20 @@ namespace Prism
|
||||
|
||||
UI::PropertySlider("Exposure", m_EditorCamera.GetExposure(), 0.0f, 5.0f);
|
||||
|
||||
ImGui::Separator();
|
||||
float near = m_EditorCamera.GetNear();
|
||||
float far = m_EditorCamera.GetFar();
|
||||
|
||||
if (UI::Property("Near", near))
|
||||
{
|
||||
m_EditorCamera.SetNearFar(near, far);
|
||||
}
|
||||
if (UI::Property("Far", far))
|
||||
{
|
||||
m_EditorCamera.SetNearFar(near, far);
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
float physics2DGravity = m_EditorScene->GetPhysics2DGravity();
|
||||
if (UI::Property("2D World Gravity", physics2DGravity, -100.0f, 100.0f))
|
||||
@ -664,7 +678,6 @@ namespace Prism
|
||||
{
|
||||
SceneRenderer::SetViewportSize((uint32_t)viewportSize.x, (uint32_t)viewportSize.y);
|
||||
m_EditorScene->SetViewportSize((uint32_t)viewportSize.x, (uint32_t)viewportSize.y);
|
||||
m_EditorCamera.SetProjectionMatrix(glm::perspectiveFov(glm::radians(45.0f), viewportSize.x, viewportSize.y, 0.1f, 1000.0f));
|
||||
m_EditorCamera.SetViewportSize((uint32_t)viewportSize.x, (uint32_t)viewportSize.y);
|
||||
ImGui::Image((ImTextureRef)SceneRenderer::GetFinalColorBufferRendererID(), viewportSize, { 0, 1 }, { 1, 0 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user