...admittedly I think for a first project in AGAL/away3d it was probably a little ambitious, and so predictably it does not work
Buuuut, hopefully I’ve helped someone buy doing a lot of the work converting the code here:
http://blog.bwhiting.co.uk/?p=383
to work in away3d
Anyways, here it is:
http://www.margaretscratcher.co.uk/projects/SSAmbOccPass.as
I’m getting lots of “Temporary register read without being written to for source operand 2 at token 6 of fragment program.” type errors, butI think the actual fragment shader bit, apart from the tokens which are left commented out, should be all good, it’s just plumbing everything else into/out of it.
I’m hoping someone who knows a bit more (pretty much anything )about AGAL can take over where I’ve got to and get it working.