Multi-Stage Dirt Cleaning URP


Shaders: ... Scripts: ... - Unity Versions: Unity 2022.3 LTS, Unity 2023, Unity 6+. ... KEY HIGHLIGHTS: ... - Stage 2 (Dilution & Serum): Expanded wash channels, higher transparency, diluted ...


by LoSpider


Price History +

Progressive multi-stage dirt and blood cleaning system for URP. Features organic wash channels, cellular sludge textures, zero-artifact Multiply decals, and mop/water mechanics.

Package Contents & Technical Specifications:


• Shaders:

- 1 Custom URP Multiply Decal Shader (MultiStageDirtMultiply.shader) with real-time stage transition blending.


• Textures:

- 9 Baked high-resolution progressive stage textures (Stage 0, Stage 1 A-D, Stage 2 A-D).


• Prefabs & Meshes:

- 1 CleanablePuddle_Blood prefab with pre-configured colliders, materials, and pattern variants.

- 1 Custom Quad Mesh optimized for zero-artifact floor projection.


• Scripts:

- Core: CleanablePuddle.cs, ICleanable.cs, PuddleStageVariant.cs

- Editor: CleanablePuddleEditor.cs (with in-editor Simulate Hit and Reset Dirt testing buttons)

- Demo: DemoMopCleaner.cs, CleaningDemoUI.cs, DemoSimpleFPSCamera.cs

- 2 Assembly Definitions (MultiStageDirtCleaning.asmdef & MultiStageDirtCleaning.Editor.asmdef)


• Performance:

- Zero garbage collection (GC) allocations in update loops.

- MaterialPropertyBlock-driven texture swapping and blending.


• Compatibility:

- Render Pipeline: Universal Render Pipeline (URP).

- Unity Versions: Unity 2022.3 LTS, Unity 2023, Unity 6+.

- Input: Compatible with both New Input System and Legacy Input Manager.

- Documentation: Includes Quick Start README.md and HTML documentation guide.

Multi-Stage Dirt Cleaning is a production-ready, progressive decal washing and dirt removal system designed for the Universal Render Pipeline (URP).


This system provides organic multi-stage wash channels, cellular sludge textures, and physical Multiply floor blending that preserves the surface texture beneath the decal.


KEY HIGHLIGHTS:


• Progressive Multi-Stage Cleaning:

- Stage 0 (Intact): Solid, viscous blood and dirt footprint.

- Stage 1 (Initial Strike): Organic wash channels, clumpy cellular sludge texture, smooth gradient edges, and washed peripheral splatters.

- Stage 2 (Dilution & Serum): Expanded wash channels, higher transparency, diluted serum margins, and liquefied remaining dirt.

- Gradual Spot Emergence (Hits > 3): Extra strikes smoothly blend textures via shader interpolation, carving out wash channels incrementally rather than abruptly jumping stages.

- Final Stage (Cleaned): Completely disappears with optional cleanup VFX particles and fires the OnFullyCleaned UnityEvent.


• Zero-Artifact Multiply Decal Shader:

Preserves underlying floor tiles, grout lines, concrete pores, and metallic surfaces without harsh alpha cutoffs or artificial gray film.


• Directional Macro Patterns:

Includes 4 distinct organic sweep directions (Center-Top, Left Flank, Right Flank, Bottom Sweep). Built-in spatial hashing automatically gives adjacent puddles in a room different wash pattern directions.


• Ready-To-Use Demo Scene:

Includes a fully playable first-person test chamber with an animated mop viewmodel (forward jab thrust into the crosshair), dual-input FPS camera, and an interactive runtime calibration panel with per-section reset buttons.