Concept
Specular aliasing
You might say: sparkle, shimmer, glitter, fireflies, noisy shine
Specular aliasing is the sparkle or shimmer that appears when one screen pixel covers more fine relief than the shader samples. Tiny bright highlights flash on and off as the camera or light moves.
- What it does
- Explains why relief that looks good up close turns into glitter or a noisy sheen at play distance, and points to filtering the highlight rather than repainting the texture.
- Ask
- Does the highlight hold still when the camera moves, or do single pixels flash on and off?
- Typical
- Fixes widen the highlight where normals disagree inside a pixel: the Toksvig factor for normal maps, geometric specular anti-aliasing for curved meshes.
- Trouble
- Every fix trades sparkle for blur: a stronger filter gives a duller, softer highlight. Turning relief down everywhere also flattens the surface up close.
What to look for
- Single bright pixels flash on bumpy ground or foliage as the camera moves
- The sparkle is worst where relief is finer than a pixel, usually at distance
- Smooth, curved, dense meshes shimmer along their highlights
Pattern
Connections
- See also: Normal map
- See also: Roughness
Sources
- Michael Toksvig, Mipmapping Normal Maps (NVIDIA whitepaper), Abstract
this paper explores how the shortening can be used as a measure of normal variation to eliminate the common problem of strobing/sparkling noise due to aliasing of specular highlights.
- Michael Toksvig, Mipmapping Normal Maps (NVIDIA whitepaper), Eliminating Aliasing of Specular Highlights
For convenience, we introduce a “Toksvig factor”, the factor by which the original shininess exponent, s, is to be scaled down.
- Unity Technologies, Geometric Specular Anti-aliasing (High Definition Render Pipeline manual), Geometric Specular Anti-aliasing
This modifies the smoothness values on surfaces of curved geometry in order to remove specular artifacts.
- Unity Technologies, Geometric Specular Anti-aliasing (High Definition Render Pipeline manual), Properties, Screen Space Variance
Higher values produce a blurrier result with less aliasing.
Use it on your project
teardown-apply: hold "Specular aliasing" (specular-aliasing) from the teardown at https://teardownatlas.com/environment-art/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal