WHICH_SHADER(nged)
list all combinations using a given shader
π WHICH_SHADER π (nged)
okay bestie, so you know how your database has a million combinations and you're sitting there like "which ones are using that one shader??" π yeah. this is the manual page for which_shader, a BRL-CAD User Command, and it exists to save you from that exact spiral π«Ά
β¨ NAME β¨
which_shader β literally lists, for you, every single combination that's using a given shader π
π SYNOPSIS π
which_shader [-s] shader_name(s)
πΈ DESCRIPTION πΈ
so here's the vibe: which_shader goes digging through every combination in the database and reports back the ones whose shader string contains one or more of the shader_name values you gave it. it's a substring match, no cap β a combination gets included as long as its shader field has the given name anywhere inside it. slay. π₯
heads up though: only combinations get scanned. primitive shapes don't have shaders, so they're not even checked. sorry not sorry to the primitives π
and yes, you can hand it multiple shader names at once β it just scans the database once for each one. efficient queen behavior π
β Options β
-sβ script mode! it spits out the matching combination names separated by spaces, all on a single line, no headers, ngl super clean for automation. without this flag, the output gets grouped under a heading for each shader name, with each matching combination chillin' on its own indented line π¦
π EXAMPLES π
Example 1. list all combinations using the plastic shader
mged> which_shader plastic
this reports all combinations whose shader string contains plastic, with a heading line and one name per line β¨
example output, iconically:
Combination[s] with shader plastic:
hull.c
turret.c
Example 2. script-mode output for use in automation
mged> which_shader -s plastic
returns the matching names space-separated, no header, for use in scripts π
hull.c turret.c
Example 3. search for multiple shaders at once
mged> which_shader plastic glass
scans for combinations using plastic, then separately for ones using glass, and reports the results under their own separate headings. multitasking main character energy fr fr π
π SEE ALSO π
wmater(nged), rmater(nged)
π AUTHOR π
BRL-CAD Team β absolute legends π«Ά
π BUG REPORTS π
if you find a bug or a problem (rude of it), reports should be submitted via electronic mail to devs@brlcad.org π§ don't be shy, they wanna know
and that's the whole page, bestie!! π this was BRL-CAD's WHICH_SHADER(nged), brought to you by the BRL-CAD Team, and if you're ever like "wait what version/date was this from"β that's the footer energy right there, so go check the source. mwah π§β¨
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms