Search found 2 matches

by mkawick
Thu Oct 06, 2011 10:33 pm
Forum: Code Snippets
Topic: xml based postprocessing framework
Replies: 125
Views: 149292

Re: xml based postprocessing framework

For the DOF, how do you control the focal depth? In the PostProcessManager, I tried playing with this a bit DepthMaterial->setVertexShaderConstant("DistanceScale", 0.0006f); but the results were not stunning. For larger values everything is blurred. A range of -0.0002 to 0.0002 seems fine ...
by mkawick
Thu Oct 06, 2011 8:08 pm
Forum: Advanced Help
Topic: DOF Shader
Replies: 2
Views: 817

DOF Shader

There is some talk of a Depth of Field shader for IrrLicht. However, I haven't found any source whatsoever. I'd like to see someone's implementation of of a DOF shader for HLSL if one exists. If not, can someone show me how to create a stencil buffer onto which I can render the DOF. Best would be a ...