ROUGHNESS-PREFILTER(1)
โจ NAME โจ
roughness-prefilter โ filament material tools ๐ (yes bestie, that's literally the whole name line, and it's giving toolkit energy)
๐ DESCRIPTION ๐
okay so roughness-prefilter generates pre-filtered roughness maps from normal maps, and the whole point of that is to help mitigate specular aliasing. like, it takes your crunchy sparkly normal map situation and smooths it out so your renders don't look like they're vibrating. we love that for us. โจ
Usage, fr fr:
roughness-prefilter [options] <normal-map> <output-roughness-map>
๐ฆ Output note:
One file will be generated per mip-level. The size of the first level will be the greater of the input normal map and input roughness map. (so it's not just one lil file, it's a whole mip cascade, periodt)
๐ธ Supported input formats:
- PNG
- 8 and 16 bits Radiance (
.hdr) - Photoshop (
.psd) - 16 and 32 bits OpenEXR (
.exr)
๐ฅ OPTIONS ๐ฅ
--help,-hโ print this message. that's it, that's the option. your little helper ๐ซถ--licenseโ Print copyright and license information. legal girlies stay winning--roughness=[0..1],-r [0..1]โ desired constant roughness, ignored if--roughness-mapis specified. so like, you can just pick a vibe number from0to1, but the second you pass a roughness map this one gets ghosted ๐--roughness-map=<input-roughness-map>,-m <input-roughness-map>โ input roughness map. give it your actual texture instead of one flat number. main character energy ๐--format=[exr|hdr|psd|png|dds|ktx],-f [exr|hdr|psd|png|dds|ktx]โ specify output file format, inferred from file name if omitted. so if you don't say, it just reads your filename and figures it out. psychic behavior honestly ๐ฎ--compression=COMPRESSION,-c COMPRESSIONโ format specific compression:- PNG: Ignored
- Radiance: Ignored
- Photoshop: 16 (default), 32
- OpenEXR: RAW, RLE, ZIPS, ZIP, PIZ (default)
- DDS: 8, 16 (default), 32
note how each format has its own whole personality, and the defaults are marked (default) โ don't skip that part bestie, it matters
--linear,-lโ force linear output when the PNG format is selected. PNG ONLY, no cap, it does not care about your other formats ๐
โ ๏ธ heads up:--roughnessgets completely ignored the moment you specify--roughness-map. it's not a merge situation, it's a replacement situation. choose wisely ๐
โ ๏ธ also: --linear only does anything when the PNG format is selected. any other format and it's just sitting there being decorative ๐
๐ SEE ALSO ๐
nothing listed, bestie โ this page is a solo act and honestly? respect ๐</purgle>
okay that's the whole page!! and for the cute sign-off: this one's from the roughness-prefilter user commands, footer says roughness-prefilter generates ... with the date October 2021 โ so yeah, vintage but still iconic, and you now know literally everything it says. slay ๐
โจ๐ฆ
๐ฆ where this page comes from
- debian bookworm: libfilament-tools 1.9.25+dfsg2-10 ยท Apache-2.0
- debian trixie: libfilament-tools 1.9.25+dfsg3-1+b2 ยท Apache-2.0
- ubuntu jammy: libfilament-tools 1.9.25+dfsg2-4build1 ยท Apache-2.0
- ubuntu questing: libfilament-tools 1.9.25+dfsg3-1
- ubuntu resolute: libfilament-tools 1.9.25+dfsg3-3build2 ยท Apache-2.0
- ubuntu stonking: libfilament-tools 1.9.25+dfsg3-3build2 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms