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 /
This question was closed Jun 28, 2015 at 12:39 PM by joshua-lyness for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by joshua-lyness · Jun 26, 2015 at 04:33 PM · shadermaterialalphatransparenttransparancy

Tinted alpha

I have no idea how to code shaders, and so far that seems to be the only way to do this... I have a texture for a tram model, and it has an alpha colour for the windows. However by using alpha cutout shader, it makes it completely transparent. The alpha part of the texture for the tram is slightly grey, however that doesn't seem to affect how it renders in unity, it still appears completely alpha. I need to tint the windows slightly grey, however I cant seem to find how to do that in unity. Any help is appreciated. :)

Comment
Add comment · Show 3
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 Owen-Reynolds · Jun 26, 2015 at 05:35 PM 1
Share

?? Cutout shader does what it says. It uses alpha to either keep or to completely cut-out part of the texture. Good for things like leaves, with curvy, but completely solid edges.

Have you tried a regular alpha shader (often simply called Transparent)?

avatar image joshua-lyness · Jun 27, 2015 at 05:40 PM 0
Share

yea but the effect is weird..... I have added a screenshot of what happens with just regular transparency: alt text

screenshot-37.png (277.7 kB)
avatar image joshua-lyness · Jun 27, 2015 at 05:46 PM 0
Share

whereas I need the texture to be solid opacity except where the windows are, similar to how cutout works but with options for "how transparent" and colour of the transparency....

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by joshua-lyness · Jun 27, 2015 at 10:21 PM

alright after a bit of research I found out that you cant do both opacity controlled by a texture and alpha with its own colour value on the same material, so I just separated the glass from the car. Thx for your help anyway ;) alt text

Comment
Add comment · Share
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

Follow this Question

Answers Answers and Comments

23 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[Unity5]how to change alpha by using shader. 1 Answer

Changing material color´s alpha in self iluminated shader 1 Answer

Boat wake/foam 0 Answers

apply transparent png, material color shine through 3 Answers

Is there a way to set an alpha color? 2 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