Transparency map

From polycount
Revision as of 19:00, 31 December 1969 by (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

An Opacity map creates transparency. This is typically called Alpha Blend in the [[Category|Shader]:Shader].

TableOfContents

Anchor(SortingProblems)

Sorting Problems

If you overlap multiple transparent surfaces in the same mesh, like hair planes, then the sorting will probably be bad.

You can sometimes fix this by re-ordering the vertices of the mesh so that the behind-most vertices (faces) are first, and the front-most faces are last, and the rest are in order between those. Detaching and re-attaching them in order is one way to do it.

If using a single Alpha Test material, then you get no sorting problems, but the hair edge is very solid-looking. Also no anti-aliasing for the edge. That's alpha-test for ya.

There's an increasing cost for using more and more hair planes though. The fill rate increases, because the same screen pixels are being drawn over and over again, and alpha-blend is basically fill-rate expensive. Might not be a problem though, because usually hair will be relatively small on screen. But if the character is right up in your face, it could get slow.

Personal tools
Namespaces

Variants
Actions
Navigation
Tools