BUG: Probe baking look at matrix was wrong

Multiple fixes in files sent by Az but matrix look at function was creating a view matrix that messed up the capture.
Look at function for matrix now returns the correct matrix and bakes looking better
This commit is contained in:
marauder2k7 2025-01-07 15:44:19 +00:00
parent 3d305284cf
commit 9af22dc302
3 changed files with 56 additions and 56 deletions

View file

@ -566,13 +566,15 @@ void RenderProbeMgr::bakeProbe(ReflectionProbe* probe)
ReflectParams reflParams;
MatrixF camTrans = clientProbe->getTransform();
camTrans.setPosition(clientProbe->getTransform().getPosition() + clientProbe->mProbeRefOffset);
//need to get the query somehow. Likely do some sort of get function to fetch from the guiTSControl that's active
CameraQuery query; //need to get the last cameraQuery
query.fov = 90; //90 degree slices for each of the 6 sides
query.nearPlane = 0.1f;
query.nearPlane = 0.0001f;
query.farPlane = farPlane;
query.headMatrix = MatrixF();
query.cameraMatrix = clientProbe->getTransform();
query.cameraMatrix = camTrans;
Frustum culler;
culler.set(false,