Commit 6d244e58 authored by Martin Schultz's avatar Martin Schultz
Browse files

use the shadergenerator for picking sahder

parent d1d385ec
......@@ -406,7 +406,10 @@ void CameraNode::pick(GLState& _state, PickTarget /*_target*/)
GLSL::Program* pickShader = ShaderCache::getInstance()->getProgram("Picking/vertex.glsl", "Picking/single_color_fs.glsl");
static ShaderGenDesc desc;
desc.vertexTemplateFile = "Picking/vertex.glsl";
desc.fragmentTemplateFile = "Picking/single_color_fs.glsl";
GLSL::Program* pickShader = ACG::ShaderCache::getInstance()->getProgram(&desc, nullptr);
if (pickShader && pickShader->isLinked())
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