Commit ac8faa42 authored by Christopher Tenter's avatar Christopher Tenter

DepthPeeling: output renderinfo with modifiers

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19668 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e89e2132
......@@ -956,6 +956,37 @@ void DepthPeeling::initDualDepthPeeling()
ACG::glCheckErrors();
}
QString DepthPeeling::renderObjectsInfo( bool _outputShaderInfo )
{
QString infoString;
ACG::ShaderModifier* availableMods[4] =
{
&PeelInitModifier::instance, &PeelLayerModifier::instance,
&PeelDualInitModifier::instance, &PeelDualLayerModifier::instance
};
// write modified shaders for init and peel passes
infoString += "PeelInit:\n\n\n";
std::vector<ACG::ShaderModifier*> mods;
mods.push_back(availableMods[peelMode_*2]);
infoString += dumpCurrentRenderObjectsToString(&sortedObjects_[0],_outputShaderInfo, &mods);
infoString += "\n\n-----------------------------------------------\n\n\n\n";
infoString += "PeelLayer:\n\n\n";
mods[0] = availableMods[peelMode_*2 + 1];
infoString += dumpCurrentRenderObjectsToString(&sortedObjects_[0],_outputShaderInfo, &mods);
return infoString;
}
//
// void DepthPeeling::dbgDrawTex( GLuint _texID )
......
......@@ -79,7 +79,7 @@ public:
public slots:
QString version() { return QString("1.0"); };
QString renderObjectsInfo(bool _outputShaderInfo) { return dumpCurrentRenderObjectsToString(&sortedObjects_[0],_outputShaderInfo); };
QString renderObjectsInfo(bool _outputShaderInfo);
QAction* optionsAction();
......
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