Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Mr Brent · Nov 06, 2013 at 06:12 PM · shadershaderstransparency

Transparent Shader the Clips other Transparency

This may be a bit hard to explain, but here's a picture of what I have:

alt text

The grey/blue and yellow ships, with the larger black circles are intended to be the player's ships, and their vision merges. That works just fine, and I'm using the merge shader detailed here: http://forum.unity3d.com/threads/146173-Merge-shader

I've also included a blue "fog" so that the non-visible areas of the screen are obvious. My problem is the red vision circles of the enemies. I can hide the enemies model when they aren't visible, that's not the issue, but their vision circles, especially when they're at the edge of the player's vision, also go into the "fog" area. I'd like you to only see the portion of the enemy vision circle that overlaps the player's vision.

I've attempted to do all kinds of Zwrite options on the fog shader, hoping that it would overwrite what's below it, but anything that does work, also turns it into a solid color, and I'd still like to see the stars behind there, or other large structures that would not be affected by player vision.

Any clue as to how I can clip those red circles to the bigger grey circles of the player's vision? Is there any way to only overwrite what's the in Transparent render queue, or a specific layer?

screen shot 2013-11-05 at 3.31.13 pm.png (264.5 kB)
Comment
Add comment
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

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

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

shader Transparency 1 Answer

Why does the 3D Text shader show specular at certain angles? 2 Answers

Global Transparency for sprite shader 1 Answer

Plugging in screenPosition node`s A channel gives different result then plugging in an identical float value in shader graph. 1 Answer

HELP. Transparency Shader can't Apply Metallic and Smoothness,HELP! Transparent Shader Can't apply Metalic and Smoothness. 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