Closed Arsakes closed 8 years ago
Hi Arsakes,
sorry, this example was neglected a bit lately since this isn't officially supported yet. I've just fixed up some problems with it and edited the wiki page, it should work now.
Note in the render function there's a call to this.mainRenderPass.setProcessed(false);
now, and in the render pass this is propagated to the pre-passes as well. This is really ugly but for now you have to explicitly set the processed
flag in every render pass to false
before you begin rendering the tree, otherwise nothing will be re-drawn.
I hope we'll get some time to work on this interface soon because it's a bit of a mess, but see if the example blur tree works now in your scene.
Blur works, thanks for fixing the example.
I'm trying to use RenderInterfaces I've copied the blur code from here Is it suppose to work with current version (non-dev branch)? It doesn't work with either branch.
Using following code:
I get following results:
Also I've corrected error in naming shader you did [here]https://github.com/xml3d/xml3d.js/wiki/Custom-RenderTrees-and-the-RenderInterface I mean: horizontalBlurShader -> box-blur-shader