Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by EnkiBye · Apr 13, 2015 at 06:22 PM · depthmask

Multiple Holes with Depth Shader

Hi,

I am making a multiplayer game where players can create holes in the walls, after experimenting with render textures to see trought the holes, I am trying to use the depth mask shader.

http://wiki.unity3d.com/index.php?title=DepthMask

It look exatly the way I want but to make the depth mask shader work, I have to change the material render queue. The shader make that if a material has a render queue higher than 2010, it will not be rendered trought the hole. The problem is that, if there is another wall with a render queue >2010 behind the portal (a wall with another portal on it for example) the second wall is not rendered trought the first portal.

When I make a hole in a wall : alt text

If I make a portal on the ground on the other side of the portal : alt text

The ground get a render queue higher than 2010 and the depth mask shader don't render it.

Thank you.

2015-04-11-16-13-33-unity-personal-64bit-testdepth.png (440.1 kB)
2015-04-11-16-15-32-unity-personal-64bit-testdepth.png (409.6 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ahmadian · Aug 06, 2016 at 11:46 AM 0
Share

Any solution? I'm having the same problem with this Shader

avatar image gaps · Jul 27, 2019 at 01:41 PM 0
Share

@$$anonymous$$kiBye did you manage to find a solution? I have the exact same problem!

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to - Cut off GUI Texture with Objects with depth mask shader 2 Answers

Why does this cube occlude this sphere? (with pictures) 1 Answer

On Unity Wiki I see dynamic text that says "Invalid language". Why? 1 Answer

Playing a Depth Mask video track over another 2D video track? 1 Answer

Using more than 1 Depthmask to slice objects individually 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges