Qt3D: How to render a mesh in wireframe mode using Qt C++?
The OP is interested on write a shader program, so its necessary to write OpenGL in Qt, right? Like in https://doc.qt.io/qt-5/qtgui-openglwindow-example.html and https://doc.qt.io/qt-5/qtopengl-hellogl2-example.htm. There is a simple shader example on https://doc.qt.io/qt-5/qopenglshaderprogram.html program.addShaderFromSourceCode(QOpenGLShader::Vertex, “attribute highp vec4 vertex;\n” “uniform highp mat4 matrix;\n” “void main(void)\n” “{\n” ” gl_Position = matrix * vertex;\n” “}”); program.addShaderFromSourceCode(QOpenGLShader::Fragment, “uniform mediump vec4 color;\n” … Read more