Starting point for CSM projectiong matrix debugging

This commit is contained in:
antopilo
2025-01-11 00:12:21 -05:00
parent 72440a362d
commit 3193ebd062
5 changed files with 15 additions and 16 deletions
@@ -825,6 +825,7 @@ void VkSceneRenderer::BuildMatrixBuffer()
auto [transform, lightComp] = lightView.get<TransformComponent, LightComponent>(e);
Vector3 direction = transform.GetGlobalRotation() * Vector3(0, 0, -1);
lightComp.Direction = direction;
LightData light = {};
light.position = Vector3(transform.GetGlobalTransform()[3]);