Log inGet started
Package

toonFabric.shader

Newest version

README.md

toonFabric

Cel-shaded cloth shader for the toon fabrics of fabricsMaterials (toonCotton, toonDenim, toonVelvet, feltFlat). Adapted from metalsMaterials' toonMetal (MIT).

The sun is cut into quantize_steps flat bands and the darkest band keeps shadow_lift of the sunlight, so folds keep the cloth's colour instead of going black. rim_sheen, rim_width and rim_color draw a hard pale band at grazing angles, the cartoon form of velvet's sheen. Two-sided: back faces shade with their own normal, so a draped sheet reads the same from both sides. It scales with the scene's sun and ambient, so every lighting look still changes it. It lights itself, so the capture tool's albedo, roughness and metallic passes draw it magenta.