- Home /
Tree billboards with ZWrite
Hi, I would like to render particle fog and trees, but since the internal TreeBillboard shader is not accessible and not writing depth to the z-buffer (and the particle fog needs to be rendered post-trees), it looks odd. How can I fix or work around that?
Answer by fuzail.india · Jul 16, 2012 at 09:32 AM
you can customise your rendering order by writing a custom script so that rendering is done according to the camera distance.this might solve your problem. if you need this . i might help you with the code. cheers...
i have beeen working on this for past 3 days and i think i have developed the code to solve your problem.If your problem is not solved, i can help you with this.there is no role of shader. you can use transparent/diffuse or any other with my code. cheers...
fuzail.india, have you posted this code anywhere? $$anonymous$$aybe you can update your answer?
Your answer

Follow this Question
Related Questions
Tree shadow problem / billboard trees 3 Answers
Leaf Billboard light issues 0 Answers
Invisible Tree Billboards....???? 1 Answer
Tree billboards have a white outline... 0 Answers