Skip to content

Commit

Permalink
[Editor] Update default scene
Browse files Browse the repository at this point in the history
  • Loading branch information
fabsgc committed Feb 25, 2024
1 parent 2e072f1 commit 22d2f8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions Source/Examples/Editor/TeEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,17 @@ namespace te
_viewportCameraSO = SceneObject::Create("UIViewportCamera");
_viewportCameraSO->SetParent(_viewportSO);

_viewportCameraSO->SetPosition(Vector3(3.0f, 1.25f, 0.0f));
_viewportCameraSO->LookAt(Vector3(0.0f, 0.0f, 0.0f));
_viewportCameraSO->SetPosition(Vector3(2.5f, 1.5f, -2.5f));
_viewportCameraSO->LookAt(Vector3(-0.5f, 0.0f, 0.0f));

_viewportCamera = _viewportCameraSO->AddComponent<CCamera>();
_viewportCamera->GetViewport()->SetClearColorValue(Color(0.42f, 0.67f, 0.94f, 1.0f));
_viewportCamera->Initialize();
_viewportCamera->SetMSAACount(gCoreApplication().GetWindow()->GetDesc().MultisampleCount);
_viewportCamera->SetProjectionType(ProjectionType::PT_PERSPECTIVE);
_viewportCamera->SetName("Viewport camera");
_viewportCamera->SetShutterSpeed(1.0f/2000.0f);
_viewportCamera->SetAperture(3.2f);

_viewportCameraUI = _viewportCameraSO->AddComponent<CCameraUI>();
_viewportCameraUI->Initialize();
Expand Down Expand Up @@ -1446,7 +1448,7 @@ namespace te
_skybox = _sceneSkyboxSO->AddComponent<CSkybox>();
_skybox->SetTexture(_skyboxTexture);
_skybox->SetBrightness(1.f);
_skybox->SetIBLIntensity(5000.f);
_skybox->SetIBLIntensity(15000.f);
_skybox->Initialize();
}
// ######################################################
Expand All @@ -1455,9 +1457,9 @@ namespace te
// ######################################################
_sceneLightSO = SceneObject::Create("Light");
_sceneLightSO->SetParent(_sceneSO);
_light = _sceneLightSO->AddComponent<CLight>(Light::Type::Spot);
_light = _sceneLightSO->AddComponent<CLight>(Light::Type::Directional);
_light->Initialize();
_light->SetIntensity(5000.f);
_light->SetIntensity(60000.f);
_light->SetCastShadows(true);

Quaternion rot;
Expand Down
4 changes: 2 additions & 2 deletions Source/Plugins/TeD3D11RenderAPI/TeD3D11HLSLProgramFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ namespace te
std::filesystem::path compiledShaderPath = std::filesystem::current_path();
compiledShaderPath.append("Shader_" + Util::Md5(desc.Source + "_" + variationSuffixes) + ".blob");

//#if TE_DEBUG_MODE == TE_DEBUG_DISABLED
#if TE_DEBUG_MODE == TE_DEBUG_DISABLED
if (std::filesystem::exists(compiledShaderPath) && desc.FilePath != "")
{
microcode = OpenMicroCode(compiledShaderPath);
openMicroCode = true;
}
//#endif
#endif

if (!microcode)
{
Expand Down

0 comments on commit 22d2f8a

Please sign in to comment.