Fixed file explorer selection bug

Fixed new project crash
This commit is contained in:
antopilo
2021-08-31 16:04:01 -04:00
parent 6cbafae07a
commit 2a073f5972
6 changed files with 122 additions and 162 deletions

View File

@@ -278,8 +278,9 @@ namespace Nuake {
pbrShader->SetUniform1i("u_ShowNormal", 0);
if (cam)
if (!cam)
{
return;
pbrShader->SetUniform1f("u_Exposure", cam->Exposure);
pbrShader->SetUniformMat4f("u_View", cam->GetTransform());
pbrShader->SetUniformMat4f("u_Projection", cam->GetPerspective());