Ignore:
Timestamp:
Dec 18, 2012, 10:59:23 PM (7 years ago)
Author:
touky
Message:

the stupidest idea of the day : the cube light, specular still missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r2145 r2148  
    6969    m_gpu.modelview = m_gpu.shader->GetUniformLocation("in_ModelView");
    7070    m_gpu.view = m_gpu.shader->GetUniformLocation("in_View");
     71        m_gpu.invview = m_gpu.shader->GetUniformLocation("in_Inv_View");
    7172    m_gpu.proj = m_gpu.shader->GetUniformLocation("in_Proj");
    7273    m_gpu.normalmat = m_gpu.shader->GetUniformLocation("in_NormalMat");
     
    120121    m_gpu.shader->SetUniform(m_gpu.modelview, modelview);
    121122    m_gpu.shader->SetUniform(m_gpu.view, Scene::GetDefault()->GetViewMatrix());
     123    m_gpu.shader->SetUniform(m_gpu.invview, inverse(Scene::GetDefault()->GetViewMatrix()));
    122124    m_gpu.shader->SetUniform(m_gpu.proj, Scene::GetDefault()->GetProjMatrix());
    123125    m_gpu.shader->SetUniform(m_gpu.normalmat, normalmat);
Note: See TracChangeset for help on using the changeset viewer.