Ignore:
Timestamp:
Apr 21, 2012, 6:58:33 PM (9 years ago)
Author:
sam
Message:

gpu: add methods to send mat2 and mat3 matrices to the shader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/vector.h

    r1258 r1259  
    14531453    }
    14541454
    1455     static Mat3<T> normal(Mat3<T> const &mat)
    1456     {
    1457         return transpose(inverse(mat));
    1458     }
    1459 
    14601455    void printf() const;
    14611456
     
    15451540    {
    15461541        return rotate(angle, v) * mat;
    1547     }
    1548 
    1549     static Mat3<T> normal(Mat4<T> const &mat)
    1550     {
    1551         return transpose(inverse(Mat3<T>(mat)));
    15521542    }
    15531543
Note: See TracChangeset for help on using the changeset viewer.