mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
ShaderGenerator: print out generated shader in spam output mode
This commit is contained in:
parent
1d9334f578
commit
0ba1235d35
@ -1684,6 +1684,11 @@ synthesize_shader(const RenderState *rs, const GeomVertexAnimationSpec &anim) {
|
|||||||
}
|
}
|
||||||
text << "}\n";
|
text << "}\n";
|
||||||
|
|
||||||
|
if (pgraphnodes_cat.is_spam()) {
|
||||||
|
pgraphnodes_cat.spam() << "Generated shader:\n"
|
||||||
|
<< text.str() << "\n";
|
||||||
|
}
|
||||||
|
|
||||||
// Insert the shader into the shader attrib.
|
// Insert the shader into the shader attrib.
|
||||||
PT(Shader) shader = Shader::make(text.str(), Shader::SL_Cg);
|
PT(Shader) shader = Shader::make(text.str(), Shader::SL_Cg);
|
||||||
nassertr(shader != nullptr, nullptr);
|
nassertr(shader != nullptr, nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user