Finalize the wall shader with some magic formulas.