.shader
2 claimants
1 primary
1 secondary
unambiguous primary
SWH popularity
Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.
396.5K
first seen 2021–2025 (39.7%)
2020
median year (half its files since)
Case variants in archive: .shader (998.7K), .Shader (760), .SHADER (154), .ShAder (1) — aggregated above.
Claimants (2)
Languages that list .shader among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
| Language | Source | Strength |
| shaderlab | linguist | primary |
| GLSL | linguist | secondary |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a .shader file actually is.
| Rule | Predicts | Kind | Predicates (truncated) | Measured on SWH |
h/linguist/.shader/0 | shaderlab | predicates | [{"kind": "any", "regexes": ["(?i)^[ \\t]*(?:Shader[ \\t]+\"[^\"\\r\\n]+\"|SubShader)[ \\t\\r\\n]*\\{"]}] | |
h/linguist/.shader/1 | GLSL | predicates | [{"kind": "any", "regexes": ["\\A[ \\t\\r\\n]*#[ \\t]*version[ \\t]+[0-9]{3}(?:[ \\t]+(?:core|compatibility|es))?[ \\t]*(?://[^\\r\\n]*)?(?:\\r?\\n|\\z)"]}] | |
SWH-mined examples (1)
Real archived programs with this extension, byte-verified against the SWH archive, grouped by predicted language and by how the prediction was made. Useful for deciding what this extension actually is when the attribution is uncertain.
shaderlab (1) — 1 via unique-primary
swh:1:cnt:0e1d66248b50ecf9234f421147102e40487c394e;origin=https://github.com/Superppig/Ghost-Doc;anchor=swh:1:rev:388457b96ab6a04246ce793e6a8ea11c83d8f3f4;path=/Assets/Shader/Scene_Blend.shader