Jump to content

[SOLVED] DOF: How to exclude Nodes?


photo

Recommended Posts

Posted

Heyho

 

How can i exclude a Node from DOF? For Example the Sky in a World.

 

Sky is a Skydome Mesh (ObjectMesh)

 

v8774re8zytv.jpg

 

Thanks for the help in advance :)

Posted

As DOF is a post-processing-effect some masking within DOF fragment shader will be required. Might be possible to use depth texture and use some max z depth to decide if given pixel should be included into DOF blurring (even though I don't understand why to exclude sky from DOF processing as a sharp sky and a DOF blurred scene might look a little bit odd). Other alternative might be to enable auxiliary buffer rendering for specific nodes to initialize mask buffer texture.

Posted

maybe this helps more to understand why, ulf:

 

5m9ca4u3lwkl.jpg

  • 2 weeks later...
  • 5 weeks later...
Posted

Render composite shader will be more configurable. You will be able to exclude arbitrary objects from DOF and Motion Blur post processes.

×
×
  • Create New...