Transparent shader - почему объекты не перекрываются?

Общие вопросы о Unity3D

Transparent shader - почему объекты не перекрываются?

Сообщение VBProgr 07 янв 2012, 03:11

Всем привет!

До этого мне не приходилось использовать прозрачные шейдеры. Почему, когда я ставлю два объекта с Transparent-шейдерами 1 над другим, при это alpha у каждого = 1, видно одновременно оба объекта?


Рассчитываю на вашу помощь.
skype: vbprogr
Добавить vbprogr в Skype
VBProgr
UNITрон
 
Сообщения: 319
Зарегистрирован: 24 сен 2011, 14:11

Re: Transparent shader - почему объекты не перекрываются?

Сообщение VBProgr 07 янв 2012, 03:27

Вот, что я нашел в хелпе Unity: "Using transparent objects in your game can be tricky, as there are traditional graphical programming problems that can present sorting issues in your game. For example, if you see odd results when looking through two windows at once, you're experiencing the classical problem with using transparency. The general rule is to be aware that there are some cases in which one transparent object may be drawn in front of another in an unusual way, especially if the objects are intersecting, enclose each other or are of very different sizes. For this reason, you should use transparent objects if you need them, and try not to let them become excessive. You should also make your designer(s) aware that such sorting problems can occur, and have them prepare to change some design to work around these issues. "

Есть ли какие-то решения для пересекающихся объектов? На одном форуме советуют поменять Render Queue, но только где это настраивается?
skype: vbprogr
Добавить vbprogr в Skype
VBProgr
UNITрон
 
Сообщения: 319
Зарегистрирован: 24 сен 2011, 14:11


Вернуться в Общие вопросы

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 8