Commit 10afca5c authored by Maire Nicolas's avatar Maire Nicolas

Rajout des noms de shaders dans les constructeurs.

parent 7d0e253b
......@@ -57,6 +57,10 @@ std::string ShaderColorPerVertex::fragmentShaderText =
ShaderColorPerVertex::ShaderColorPerVertex()
{
m_nameVS = "ShaderColorPerVertex_vs";
m_nameFS = "ShaderColorPerVertex_fs";
m_nameGS = "ShaderColorPerVertex_gs";
std::string glxvert(*GLSLShader::DEFINES_GL);
glxvert.append(vertexShaderText);
......
......@@ -111,6 +111,11 @@ ShaderPhong::ShaderPhong(bool doubleSided):
m_vboNormal(NULL),
m_vboColor(NULL)
{
m_nameVS = "ShaderPhong_vs";
m_nameFS = "ShaderPhong_fs";
m_nameGS = "ShaderPhong_gs";
// get choose GL defines (2 or 3)
// ans compile shaders
std::string glxvert(*GLSLShader::DEFINES_GL);
......
......@@ -71,6 +71,11 @@ ShaderVectorPerVertex::ShaderVectorPerVertex() :
m_scale(1.0f),
m_color(Geom::Vec4f(1.0f, 0.0f, 0.0f, 0.0f))
{
m_nameVS = "ShaderVectorPerVertex_vs";
m_nameFS = "ShaderVectorPerVertex_fs";
m_nameGS = "ShaderVectorPerVertex_gs";
std::string glxvert(*GLSLShader::DEFINES_GL);
glxvert.append(vertexShaderText);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment