Version: 2020.1
Albedo Color and Transparency
Metallic mode: Metallic Parameter

Specular mode: Specular parameter

Specular parameter

The Specular parameter is only visible when using the Specular setup, as shown in the ShaderA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info
See in Glossary
field in the image above. Specular effects are essentially the direct reflections of light sources in your SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
, which typically show up as bright highlights and shine on the surface of objects (although specular highlights can be subtle or diffuse too).

Both the Specular setup and Metallic setup produce specular highlights, so the choice of which to use is more a matter of setup and your artistic preference. In the Specular setup you have direct control over the brightness and tint colour of specular highlights, while in the Metallic setup you control other parameters and the intensity and colour of the specular highlights emerge as a natural result of the other parameter settings.

When working in Specular mode, the RGB colour in the Specular parameter controls the strength and colour tint of the specular reflectivity. This includes shine from light sources and reflections from the environment. The Smoothness parameter controls the clarity of the specular effect. With a low smoothness value, even strong specular reflections appear blurred and diffuse. With a high smoothness value, specular reflections are crisper and clearer.

The Specular Smoothness values from 0 to 1
The Specular Smoothness values from 0 to 1

You might want to vary the Specular values across the surface of your material - for example, if your Texture contains a character’s coat that has some shiny buttons. You would want the buttons to have a higher specular value than the fabric of the clothes. To achieve this, assign a Texture map instead of using a single slider value. This allows greater control over the the strength and colour of the specular light reflections across the surface of the material, according to the pixelThe smallest unit in a computer image. Pixel size depends on your screen resolution. Pixel lighting is calculated at every screen pixel. More info
See in Glossary
colours of your specular map.

When a Texture is assigned to the Specular parameter, both the Specular parameter and Smoothness slider disappear. Instead, the specular levels for the material are controlled by the values in the Red, Green and Blue channels of the Texture itself, and the Smoothness levels for the material are controlled by the Alpha channel of the same Texture. This provides a single Texture which defines areas as being rough or smooth, and have varying levels and colors of specularity. This is very useful when working Texture maps that cover many areas of a model with varying requirements; for example, a single character Texture map often includes multiple surface requirements such as leather shoes, fabric of the clothes, skin for the hands and face, and metal buckles.

An example of a 1000kg weight with a strong specular reflection from a directional light.
An example of a 1000kg weight with a strong specular reflection from a directional light.

Here, the specular reflection and smoothness are defined by a colour and the Smoothness slider. No Texture has been assigned, so the specular and smoothness level is constant across the whole surface. This is not always desirable, particularly in the case where your Albedo Texture maps to a variety of different areas on your model (also known as a Texture atlas).

The same model, but with a specular map assigned, instead of using a constant value.
The same model, but with a specular map assigned, instead of using a constant value.

Here, a Texture map controls the specularity and smoothness. This allows the specularity to vary across the surface of the model. Notice the edges have a higher specular effect than the centre, there are some subtle colour responses to the light, and the area inside the lettering no longer has specular highlights. Pictured to the right are the RGB channels controlling the specular colour and strength, and the Alpha channel controlling the smoothness.

Note: A black specular colorThe color of a specular highlight.
See in Glossary
(0,0,0) results in nulling out the specular effect.

Albedo Color and Transparency
Metallic mode: Metallic Parameter
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961