Does Unity's "Transparent Bumped Specular" translate to "semi-shiny must be semi-transparent"?

Posted by Shivan Dragon on Game Development See other posts from Game Development or by Shivan Dragon
Published on 2013-03-01T12:40:29Z Indexed on 2013/10/17 22:23 UTC
Read the original article Hit count: 316

Filed under:
|
|

Unity's documentation for the "Transparent Bumped Specular" shader/material-type is simply a concatenation of each of the descriptions for its Transparent and Specular Shaders (and also Bumped, but that doesn't apply to the question):

Transparent Properties

This shader can make mesh geometry partially or fully transparent by reading the alpha channel of the main texture. In the alpha, 0 (black) is completely transparent while 255 (white) is completely opaque. If your main texture does not have an alpha channel, the object will appear completely opaque.

(...)

Specular Properties

(...)

Additionally, the alpha channel of the main texture acts as a Specular Map (sometimes called "gloss map"), defining which areas of the object are more reflective than others. Black areas of the alpha will be zero specular reflection, while white areas will be full specular reflection.

To me this translates to:

  • I have a mesh representig a car tire
  • The texture need to be very shiny on the rims parts, and almost not shiny at all for the rubber parts
  • Also since the rim is really complex, (with like cut-out decoretions and such), I will not build that into the mesh, but fake it with transparency in the texture
  • I can't do all this using Unity's "Transparent Bumped Specular" shader, because the "rubber" part of the texture will become semi transparent due to me painting the alpha channel dark-grey (because I want it to also be less shiny).

Is this correct? If not, how can I make this work?

© Game Development or respective owner

Related posts about unity

Related posts about shaders