- Home /
How to render object in front of other object no matter position?
Hi,
any idea how to render object upfront the other one, even though the object's position is behind it?
Thanks a lot!
Comment
Answer by Pangamini · Feb 23, 2020 at 01:36 AM
You need to do two things:
Make sure the upfront object is rendered after the first one
Make sure the upfront object ignores the Z-buffer value
The first thing you can accomplish by setting the material's render queue to something higher than the other object's The second thing you can accomplish by disabling depth write in the material's shader (or, by not writing the first object to the depth buffer, or by not having a depth buffer)