| 44 | */ |
| 45 | |
| 46 | ColorBackground::ColorBackground(const Color& color) : |
| 47 | m_color(color) |
| 48 | { |
| 49 | m_uberShader = UberShaderLibrary::Get("Basic"); |
| 50 | |
| 51 | ParameterList list; |
| 52 | list.SetParameter("UNIFORM_VERTEX_DEPTH", true); |
| 53 | m_uberShaderInstance = m_uberShader->Get(list); |
| 54 | |
| 55 | const Shader* shader = m_uberShaderInstance->GetShader(); |
| 56 | m_materialDiffuseUniform = shader->GetUniformLocation("MaterialDiffuse"); |
| 57 | m_vertexDepthUniform = shader->GetUniformLocation("VertexDepth"); |
| 58 | } |
| 59 | |
| 60 | /*! |
| 61 | * \brief Draws this relatively to the viewer |
nothing calls this directly
no test coverage detected