45 #include <Qt3DRender/qshaderprogram.h>
52 using namespace DISP3DLIB;
53 using namespace Qt3DRender;
61 , m_pVertexGL3Shader(new QShaderProgram())
62 , m_pVertexES2Shader(new QShaderProgram())
70 void PerVertexPhongAlphaMaterial::setShaderCode()
72 m_pVertexGL3Shader->setVertexShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/gl3/pervertexphongalpha.vert"))));
73 m_pVertexGL3Shader->setFragmentShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/gl3/pervertexphongalpha.frag"))));
75 m_pVertexES2Shader->setVertexShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/es2/pervertexphongalpha.vert"))));
76 m_pVertexES2Shader->setFragmentShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/es2/pervertexphongalpha.frag"))));