jit.gl.pass - dof problem with jit.gl.gridshape in separate patch
I'm working on getting depth of field to work with jit.gl.pass, and have encountered a problem when jit.gl.gridshape isn't located in the same patch as jit.gl.render, jit.gl.node, etc...
I've attached a couple of images to demonstrate the difference.
The patches are below - the "parent" is more a less a copy of jit.gl.pass's help file.
I'm not really worried about the difference in geometry - that can always be fixed with messages, but I can't seem to get the Depth of Field effect to work when the jit.gl.gridshape objects are in another patch.
Is this a bug, or am I just missing something fundamental about the rendering pipeline?
Specs:
Max 7.0.3 64-bit
Windows 7 Professional 64 bit
AMD Phenom II X4 3.2 GHz
8.00 GB RAM
Nvidia GeForce GTX 460
The "parent" patch:
The "child" patch:
Well, I always seem to find the solution as soon as I post the question.
In this case, I simply needed to give my materials the appropriate render context - in this case the @name attribute of jit.gl.node in the parent patch.
Here's the corrected "child" patch: