Commit 151a0c10 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

use quad extrusion shader in line node to control the width refs #1305

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 85ec2f03
......@@ -525,6 +525,15 @@ getRenderObjects(IRenderer* _renderer, GLState& _state , const DrawModes::DrawM
ro.blendDest = GL_ONE_MINUS_SRC_ALPHA;
// simulate line width via quad extrusion in geometry shader
QString geomTemplate = ShaderProgGenerator::getShaderDir();
geomTemplate += "Wireframe/geom_line2quad.tpl";
ro.shaderDesc.geometryTemplateFile = geomTemplate;
ro.setUniform("screenSize", Vec2f((float)_state.viewport_width(), (float)_state.viewport_height()));
ro.setUniform("lineWidth", _state.line_width());
ro.vertexBuffer = vbo_;
// vertexDecl is defined in createVBO
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