some fixing; may have to revisit matfx again in the future...

This commit is contained in:
aap
2021-01-20 23:42:00 +01:00
parent e9e2488834
commit baa8666a03
4 changed files with 25 additions and 7 deletions

View File

@@ -68,8 +68,10 @@ uploadEnvMatrix(Frame *frame)
// cache the matrix across multiple meshes
static RawMatrix envMtx;
if(frame != lastEnvFrame){
lastEnvFrame = frame;
// can't do it, frame matrix may change
// if(frame != lastEnvFrame){
// lastEnvFrame = frame;
{
RawMatrix invMtx;
Matrix::invert(&invMat, frame->getLTM());