Starting point for CSM projectiong matrix debugging
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user