Pozytrum presents: Cloth-Ready Flat Shaders! Achieve perfect flat shading on your Cloth components in both Built-in and URP pipelines. These shaders prevent the common issue of Cloth smoothing out flat-shaded meshes. Includes versions with and without vertex displacement for performance flexibility.
Finally, achieve crisp, stylized flat shading on your dynamic Cloth objects without unwanted smoothing! "Cloth-Ready Flat Shaders" by Pozytrum provides a complete solution for developers using Unity's Built-in Render Pipeline or the Universal Render Pipeline (URP).Standard shaders often cause Cloth components to smooth out the distinct edges of flat-shaded meshes, ruining the desired low-poly aesthetic. This pack directly addresses that problem, ensuring your capes, flags, banners, and other cloth simulations maintain their sharp, faceted look.Key Features & Benefits:
Preserves Flat Shading on Cloth: The core feature! Say goodbye to smoothed edges on your flat-shaded cloth simulations.
Dual Pipeline Support: Includes dedicated shaders for both:
Built-in Render Pipeline: Robust, classic shaders.
Universal Render Pipeline (URP): Modern, flexible Shader Graph implementations.
Performance Options: For each pipeline, you get two versions:
Standard Flat Shader: Lightweight, for pure flat shading without mesh deformation.
Flat Shader with Displacement: Adds a simple vertex displacement effect along normals, allowing for subtle animated effects or mesh tweaks (use judiciously for performance).
Cloth Compatibility: Shaders are set up with Cull Off (Built-in) or Render Face: Both (URP) for correct two-sided rendering required by Cloth.
Alpha Clipping: Supports cutout transparency via an alpha channel in your main texture and a cutoff property.
Customizable: Includes properties for Main Texture, Tint Color, Alpha Cutoff, and Displacement Amount (where applicable).
Shadows:
Built-in displaced version includes a custom Shadow Caster pass that respects vertex displacement.
URP versions work correctly with URP's shadow system.
Easy to Use: Simply create a material, select the appropriate shader from "Pozytrum/Built-in" or "Pozytrum/URP", and apply it to your GameObjects with Cloth components.Included in this Package:
Built-in Shaders (HLSL/CG):
ClothFlatShading.shader (No displacement)
ClothFlatShadingDisplacement.shader (With vertex displacement)
URP Shaders (Shader Graph):
URP_ClothFlat.shadergraph (No displacement)
URP_ClothFlatDisplace.shadergraph (With vertex displacement)
Example Materials for each shader.
Demo Scene(s) showcasing the shaders in action with Cloth components for both Built-in and URP.
Detailed Readme documentation.Whether you're creating stylized characters with flowing flat-shaded capes or environments with dynamic flat-shaded banners, this pack provides the essential shaders to maintain your artistic vision.From Pozytrum - Crafting solutions for efficient Unity development.