Added spotlight shadows with dynamic FOV shadowmaps

This commit is contained in:
Antoine Pilote
2024-08-28 23:04:55 -04:00
parent 659e740615
commit 991bd06064
9 changed files with 34759 additions and 304 deletions

View File

@@ -366,7 +366,7 @@ void GizmoDrawer::DrawGizmos(Ref<Scene> scene, bool occluded)
Matrix4 gizmoPosition = Matrix4(1.0f);
gizmoPosition = glm::translate(scene->m_EditorCamera->GetTransform(), Vector3(transform.GetGlobalTransform()[3]));
gizmoPosition = gizmoPosition * rotationMatrix;
gizmoPosition = glm::translate(gizmoPosition, { 0, -cylinderLength / 2.0, 0 });
gizmoPosition = glm::translate(gizmoPosition, { 0, cylinderLength / 2.0, 0 });
m_LineShader->Bind();
m_LineShader->SetUniform1f("u_Opacity", 1.0f);