Skip to content

Commit

Permalink
Fix mesh shader resource embedding + move default shader
Browse files Browse the repository at this point in the history
  • Loading branch information
c42f committed Apr 11, 2013
1 parent 06ed1ed commit 3b49c92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ PointViewerMainWindow::PointViewerMainWindow()

// Set shaders
QString shaderBasePath = DISPLAZ_SHADER_BASE_PATH;
QFile shaderFile(shaderBasePath + "/points.glsl");
QFile shaderFile(shaderBasePath + "/shaders/points_default.glsl");
if (shaderFile.open(QIODevice::ReadOnly))
m_pointView->shaderProgram().setShader(shaderFile.readAll());
shaderEditor->setPlainText(m_pointView->shaderProgram().shaderSource());
Expand Down
4 changes: 3 additions & 1 deletion resources.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>points.glsl</file>
<file>shaders/points_default.glsl</file>
<file>shaders/meshface.glsl</file>
<file>shaders/meshedge.glsl</file>
</qresource>
</RCC>
File renamed without changes.

0 comments on commit 3b49c92

Please sign in to comment.