Specularity[s]
is a graphics directive which specifies that surfaces of 3D graphics objects which follow are to be taken to have specularity s.
Specularity[s,n]
uses specular exponent n.
Specularity
Specularity[s]
is a graphics directive which specifies that surfaces of 3D graphics objects which follow are to be taken to have specularity s.
Specularity[s,n]
uses specular exponent n.
Details
- Specularity is added to diffuse reflection and glow components to determine the final rendered color of a surface. »
- With specularity s, a surface is taken to specularly reflect a fraction s of light that falls on it from simulated light sources.
- The specular exponent n defines how sharply the intensity of reflected light falls off away from the mirror‐reflection direction. »
- The default specular exponent is 1.5. Higher values lead to more sharply defined reflections, typical of shinier materials. Values above 10 produce definite "specular highlights".
- Specularity[s] takes the reflected light to have the same color as the incident light from light sources.
- Specularity[col] specifies that the RGB components of the incident light should be multiplied by the RGB components of col. »
- Specularity[s] is equivalent to Specularity[GrayLevel[s]]. »
- Specularity[] is equivalent to Specularity[0] or Specularity[Black], and specifies no specular reflection.
- Specularity directives do not affect specifications from Glow or RGBColor.
Examples
open all close allBasic Examples (3)
Graphics3D[{Specularity[1, 20], Sphere[]}]Specify the specular exponent:
Table[Graphics3D[{Orange, Specularity[White, n], Sphere[]}], {n, {5, 20, 100}}]Specify the color of specularity:
Table[Graphics3D[{Black, Specularity[c, 10], Sphere[]}, Lighting -> "Neutral"], {c, {Red, Green, Blue}}]Scope (1)
Applications (1)
Properties & Relations (6)
Specularity[s] is equivalent to Specularity[GrayLevel[s]]:
Table[Graphics3D[{Orange, Specularity[s, 10], Sphere[]}], {s, {0, .5, 1}}]Table[Graphics3D[{Orange, Specularity[GrayLevel[s], 10], Sphere[]}], {s, {0, .5, 1}}]Specularity[color] is equivalent to Specularity[color,1.5]:
{Graphics3D[{Orange, Specularity[White], Sphere[]}], Graphics3D[{Orange, Specularity[White, 1.5], Sphere[]}]}Specularity[] is equivalent to Specularity[Black] and specifies no specular reflection:
Graphics3D[{Orange, Specularity[], Sphere[]}]Specularity is strongly affected by Lighting:
Graphics3D[{Black, Specularity[White, 10], Sphere[]}]Graphics3D[{Black, Specularity[White, 5], Sphere[]}, Lighting -> "Neutral"]Graphics3D[{Black, Specularity[White, 5], Sphere[]}, Lighting -> {{"Point", Orange, Scaled[{2, 2, 2}]}}]Specify Lighting to use different colors for diffuse and specular surfaces:
Graphics3D[{White, Specularity[White, 10], Sphere[]}, Lighting -> {{"Point", {Yellow, Specularity[Cyan]}, Scaled[{2, 2, 2}]}}]Specular colors are mixed with surface colors:
Graphics3D[{Darker[Red, .6], Specularity[Blue, 10], Sphere[]}, Lighting -> "Neutral"]Possible Issues (1)
See Also
Related Guides
History
Text
Wolfram Research (2007), Specularity, Wolfram Language function, https://reference.wolfram.com/language/ref/Specularity.html.
CMS
Wolfram Language. 2007. "Specularity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Specularity.html.
APA
Wolfram Language. (2007). Specularity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Specularity.html
BibTeX
@misc{reference.wolfram_2026_specularity, author="Wolfram Research", title="{Specularity}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Specularity.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_specularity, organization={Wolfram Research}, title={Specularity}, year={2007}, url={https://reference.wolfram.com/language/ref/Specularity.html}, note=[Accessed: 13-June-2026]}