I have been diving into the Frame Graph stuff and was starting to get to the point where I understand how to use the geometry Renderer to build all the textures that I might need for a custom rendering setup.
The question is now how do I actually bind these into an output that lets me control the final results?
I’m guessing that we need to have a post process or something then feed all the buffers to that? Its the only way I can think of where I could script the fragment output. Is there a different way to do it? I see the output block and stuff, but I’m doing this scripturally not through the node graph.
Do we have more examples anywhere? Id love to figure out how to do things like grab back face depths and stencils etc, but it would be nice to have direct examples of most general things like that.
I also noticed in the VAT demo the render list is set to [mesh] instead of scene.meshes so not all the bugs are shown in the graph. Is anyone actively working on this section of the documents?
You use the view depth, which is a value between [camera near, camera far]. I think you want to either use “screen space” or “normalized view” depth, to have a value between 0 and 1.
For eg (with normalized view depth):
I’m not sure to understand your question, but you can use the outputs of the geometry renderer task for tasks that take a texture as input, or do as you did and transform the handle to an internal texture to use the texture in code outside the graph.
Adding more doc is planned, as well as more examples. Thanks for reporting regarding the VAT demo! You can fix it if you want, but I can do it once I’m back home.
I’m not sure I can see the artifacts, the rendering looks good to me (?)
No, the lighting code is integrated into the standard/PBR shader. However, you can try using Spector and update the final assignment glFragColor = … to display only the result of the lighting code.
The geometry renderer task uses the existing material of the mesh to generate the geometry textures, but defines PREPASS to true so that special code in the shader generates these textures.
You can’t yet generate custom textures yourself, but it’s on our todo list.