mirror of
https://github.com/aap/librw.git
synced 2025-12-19 17:09:51 +00:00
some fixing; may have to revisit matfx again in the future...
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user