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 GreenHat · Mar 01, 2011 at 08:28 PM · texturedouble-sided

Issue with a 2 sided texture (I know, I know) :P

So I know this is a common question around these parts and you wonderful ladies and gents must get tired of answering with links of the answers.

But!

I've read the answers and since I'm a newbie @ some of this shader stuff I'm going to post my issue/trouble I'm having anyways with hopes someone can help?

I have a tree model static mesh that I want to eventually paint on a terrain layer. Anyways, the tree has many branches that are just Planes w/ Alpha maps on them. I am aiming for a 2 sided lit texture shader in unity. When I choose the "transparent/difuse" shader it works with my alphas and looks sweet! Problem is, it doesn't do the 2sided part so well..at all. Now, when I pick the "transparent/cutout/soft edge unlit" shader it all works great! ...except it's obviously unlit. :( I did some searching on here and felt like I was getting way over my head with people posting custom shaders that seemed to work with being lit, being 2sided, and holding alphas, but when I tried to implement these I couldn't quite figure out the process of coding all that in somewhere. Is there anyone who could help me out somehow without hating me for this question? haha

Comment
Add comment · Show 1
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 GreenHat · Mar 04, 2011 at 06:54 PM 0
Share

Basically, I need a shader that supports Alpha planes, 2sided texture, and has lighting on the model. How would I get that result? I don't think any of the standard shaders supports all 3.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by GreenHat · Mar 10, 2011 at 11:56 PM

Solved!

I ended up using the default shader "nature/ambient occlusion leaves" because it supports all the needs I was looking for...

Comment
Add comment · Show 3 · 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
avatar image darkdoom973 · Jan 20 at 07:19 AM 0
Share

It doesnt works with URP;( I am using the shader graph, and I enabled render both faces on plane type mesh, one side looks great but the other seems somewhat whitish, just wondering if you can help?

avatar image Bunny83 darkdoom973 · Jan 20 at 02:57 PM 1
Share

Almost any shader that does render the front and backside in one pass are unlit shaders. Lit shaders would not work with a single pass since you only have one normal for calculating the lighting of the face. A two pass shader would work because one pass could render the front and one the backside. Though the pass for the backside would need to invert the normal to perform the correct lighting calculations. Two sided shaders are usually only used for unlit shaders. If you need to render both sided in any other cases, it's best to use two quads instead. This also allows a different UV mapping for both sides (since they are essentially two seperate faces).


ps:

You do realise that this question is over 10 years old? Why posting a comment on this ancient question which was posted at a completely different time. So your issue can't possibly be related to the state of the engine 10 years ago. If you have a question, please, ask your own seperate question.

avatar image darkdoom973 Bunny83 · Jan 21 at 06:54 AM 0
Share

Arigato Bunny Senpai ;)

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

2 People are following this question.

avatar image avatar image

Related Questions

Assigning UV Map to model at runtime 0 Answers

Two-sided Objects from Blender to Unity3d 2 Answers

How to "paint" the terrain in a script? 1 Answer

Texture vs GUI 2 Answers

Randomize texture within prefab 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