mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
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:
parent
3d305284cf
commit
9af22dc302
3 changed files with 56 additions and 56 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue