0
Declined

Is it possible to make shader with possibility to toggle "double sided" in real time? Or how o simulate it?

Maxim Tkachenko 9 years ago updated by Freya Holmér (Developer) 9 years ago 1
If it is impossible to make such shader without "faking" it, then how to fake it?
I'll need to have two main inputs:
- Non-transparent texture
- Fully transparent texture
The main question is how to tell some switch to make texture transparent only where normals are negative? Kinda "If this switch is on and the normal looks away from the camera, use that node tree, and if switch is off, use another one"
I hope my english is good enough so You can understand my question :)
Thank You!

Answer

Answer
Declined
It's not really possible to do that at the moment. You can get halfway using the face sign node and opacity clip, but other than that you can't do static branching with things like Z writing and so on, which you would want if you were to toggle between transparent and non-transparent
Answer
Declined
It's not really possible to do that at the moment. You can get halfway using the face sign node and opacity clip, but other than that you can't do static branching with things like Z writing and so on, which you would want if you were to toggle between transparent and non-transparent