//-------------------------------------------------------------------------------------- void ShadowVolume::_SetParameters () { Engine& engine = Engine::Instance(); Device* device = engine.GetDevice(); Environment* env = engine.GetEnvironment(); ICamera* camera = engine.GetCamera(); Matrix44f wvp = *m_pTransform * camera->GetViewProj(); Matrix33f normalTransform(*m_pTransform); device->SetShaderParameter(m_hNormalTransformLoc, normalTransform); device->SetShaderParameter(m_hModelViewProjLoc, wvp); device->SetShaderParameter(m_hLightDirectionLoc, env->GetCurrentLight().GetWorldDirection()); device->SetShaderParameter(m_hViewProjLoc, camera->GetViewProjBias()); //clean up m_pTransform = NULL; }
void cis_data::normalTransformPhenotypes() { vrb.title("Match phenotypes to Normal distribution"); for (int p = 0; p < phenotype_count ; p ++) normalTransform(phenotype_val[p]); }