All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

VWR-29083 Make SSAO work better

Review Request #612 - Created Dec. 2, 2012 and updated

Tofu Buzzard Reviewers
tofu_linden/better-ssao4 viewer
VWR-29083
None viewer-development
Use a different scheme for weighting SSAO samples, apply SSAO before fog is applied, fix a bug in the screen-space shadow/ssao smoothing offset where the 'checkerboard' stipple had been refactored incorrectly, change some default settings in line with the resulting visual changes.  Disregard samples which are being taken from outside the screen extents - eliminates spurious SSAO fringe at screen edges at some angles.  Micro-optimize the shadow co-ord calculation.  Also, improve comments a bit. :3
Been running with this for months on an assortment of nvidia hardware, linux only.
Review request changed
Updated (Jan. 11, 2013, 1:34 p.m.)
Bring shadow settings more (totally!) in line with what I was actually testing with.  At worst these reduce variance just for my benefit, at best (I hope) they are more finely-tuned for SL's current shadow shaders (given the landing of the ternary shadows).