45 #include <Qt3DRender/qshaderprogram.h>
56 using namespace DISP3DLIB;
57 using namespace Qt3DRender;
65 , m_pVertexGL3Shader(new QShaderProgram())
66 , m_pVertexES2Shader(new QShaderProgram())
74 void NetworkMaterial::setShaderCode()
76 m_pVertexGL3Shader->setVertexShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/gl3/network.vert"))));
77 m_pVertexGL3Shader->setFragmentShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/gl3/network.frag"))));
79 m_pVertexES2Shader->setVertexShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/es2/network.vert"))));
80 m_pVertexES2Shader->setFragmentShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/es2/network.frag"))));