Commit 27fa54c9 by Philipp Adolf

Load vertex shader

parent 789ad026
......@@ -13,6 +13,9 @@ Subdivision::~Subdivision()
void Subdivision::init() {
QString source = QLatin1String(":/subdivision-edge.compute");
edgeShader = initComputeShaderProgram(source);
source = QLatin1String(":/subdivision-vertex.compute");
vertexShader = initComputeShaderProgram(source);
}
QOpenGLShaderProgram *Subdivision::initComputeShaderProgram(QString &source){
......
......@@ -33,6 +33,7 @@ private:
QOpenGLFunctions_4_3_Core *f;
QOpenGLShaderProgram *edgeShader;
QOpenGLShaderProgram *vertexShader;
QOpenGLShaderProgram *initComputeShaderProgram(QString &source);
Tables precomputeTables(Input input);
......
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