Beispiel #1
0
void
Scene::Draw(
    const ShaderProgram& prog
    ) const
{
    prog.Draw(*m_camera, *m_testBoxOne);
}
Beispiel #2
0
void
Scene::DrawFluidSolver(
    const ShaderProgram& prog,
    ParticleAdvectProgram& progAdvect
    )
{
    // -- Draw container
    prog.Draw(*m_camera, *m_fluidContainer);

    // -- Draw solids
    if (m_enableTestBox1) {
        prog.Draw(*m_camera, *m_testBoxOne);
    }

    if (m_enableTestBox2) {
        prog.Draw(*m_camera, *m_testBoxTwo);
    }

    // -- Draw particles
    m_fluidGeo->SetColors(m_fluidSolver->ParticleColors());
    progAdvect.Draw(m_camera, m_fluidGeo, m_fluidContainer);

}