Ignore:
Timestamp:
May 1, 2012, 11:19:55 PM (9 years ago)
Author:
sam
Message:

orbital: get rid of the normal matrix; we can compute it on the fly later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/mesh.h

    r1327 r1330  
    224224    }
    225225
    226     void Render(mat4 const &modelview, mat4 const &proj, mat3 const &normalmat)
    227     {
     226    void Render(mat4 const &modelview, mat4 const &proj)
     227    {
     228        mat3 normalmat = transpose(inverse(mat3(modelview)));
     229
    228230        m_gpu.shader->Bind();
    229231        m_gpu.shader->SetUniform(m_gpu.modelview, modelview);
Note: See TracChangeset for help on using the changeset viewer.