I am trying to write a couple pixel shaders to apply to images similar to Photoshop effects. For example this effect: ...
I have multisampled rendertarget where I use red channel as stencil data, but the problem is I get incorrect results around borders if "Antialiasing - Gamma Correction" is set to on in Nvidia Control ...
With 2 superposed cameras at different depths and switching their culling masks between layers to implement object-selective antialising:
We superposed two cameras, one of which uses AA as post-processing effect (AA filtering is cancelled). The camera with the AA effect has depth 0 and the camera with no effect has depth 1 as can be ...