How to render to depthBuffer but not colorBuffer

Software: Away3D 4.x

beers, Member
Posted: 30 May 2013 03:28 AM   Total Posts: 53

Hi all - I need to render an object but only want it to affect the depthbuffer, but not appear in the view (so its invisible - except for its affect on the depthBuffer).

I could swear I saw a tutorial on how to do this somewhere but can’t remember what the trick to it is.

Any help appreciated,
Beers

   

beers, Member
Posted: 30 May 2013 04:46 AM   Total Posts: 53   [ # 1 ]

Solved my own problem.  The trick is to use the ‘occlusionMaterial’.

beers

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X