I didn’t do this myself, as I don’t need deferred shading, but I’m pretty sure most of the math and the code could possibly be setup in that manner, though I think you will have to do it yourself until someone merges it within panda3d. You could def a function that does most of what that code does, so then it is suddenly a one liner for you. If it works well, post it on the forums and someone probably will get it into panda3d directly.