RNG - Blood: Procedural GPU Blood for URP
rengi.dev
$17.49
$24.99
30%OFF
(no ratings)
Jump AssetStore
Procedural GPU blood for URP: drops in flight, splatter on floors and walls, wall runs, merging puddles, pools under bodies, footprints and drying. One line of code per hit.RNG Blood is a procedural blood system for the Universal Render Pipeline. One line of code per hit gives you drops in flight, splats on floors and walls, runs that drip down walls, puddles that merge, pools that grow under bodies, bloody footprints and blood that dries over time. All blood in the scene is drawn on the GPU in two draw calls, without textures.What it does- Drops fly on a ballistic arc computed in the vertex shader and stretch with speed.- Landing drops leave splats, rays, streaks or heavy blots, stretched by the angle they hit at.- Drops that hit a wall leave runs that drip down over the next seconds.- Fresh splats that land close together merge into one growing puddle.- A body leaves a pool that grows under it and follows it while it exists.- Blood dries: glossy red turns dark, matte and brown, then fades out.- Walkers that step into a wet pool leave fading bloody footprints.- Smears: a body dragged through blood leaves a streaked trail, a hand leaves finger strokes on a wall, a body knocked against a wall smears it.- Liquid floor: pools spread, stop where they get thin and merge into one puddle; runs from the walls drain into it. Runs that reach the floor end in a puddle at the foot of the wall.- Grooves: cut drains, gutters or letters into the liquid floor with one mask texture. Blood runs into them, flows along them and fills them, without being created or lost. Optional: without the call the floor behaves exactly as before.- Characters get bloody where they are hit: the Blood Wounds component leaves up to 32 bleeding wounds per character on skinned or plain meshes, and they stay on the skin while the body moves.- Three quality levels, from projected stains with wet bevelled edges to flat stains that need no depth texture, and a Massive mode that paints floor splats into one texture, so thousands cost the same as one.- Stains are projected onto the depth buffer, so they wrap over floors, ramps and walls without decal projectors. Stains on glass are drawn on the pane.- Seven hit presets: bullet, close bullet, shotgun, headshot, blunt, blade and explosion. Every value is tunable.- Any colour, a censored colour mode and an off switch for a gore option.- A public hit event for add-ons such as dismemberment, sounds or hit marks.Easy to set up- Call Blood.Spawn(hit, direction) from your weapon code and you are done.- Blood Emitter component for UnityEvents, Animation Events and Timeline, no code needed.- A Setup window checks your URP settings and fixes them with one click.- Let an AI add it: the RNG Blood window opens once after import, and Copy AI Prompt copies a ready prompt with your project path and the guide for AI coding agents. Paste it into Claude Code, Codex, Cursor or any agent and it wires the blood into your weapons and characters. A Claude Code skill is one more click.- A live settings panel: tune every value with sliders while the game runs and save the result as a settings asset.- Four demo scenes: a cinematic Crime Scene with old dried blood and a fresh impact, a Hit Demo with a crash test dummy that reacts to every hit, six blood colours and the settings panel, an Arena: a top-down brawler with five weapons, waves of dummies, ragdolls and body dragging, and a Showcase where the RNG BLOOD logo cut into concrete fills with blood after a grenade or a ceiling fan. Everything in the screenshots and the trailer is included in the package.- Every setting has a tooltip. Full documentation is included.PerformanceTwo draw calls for all blood, flight, drying and fading run on the GPU, no garbage collection at runtime. Measured on a GeForce RTX 5060 at 3840 x 2160: 0.1 ms when idle, 0.7 ms at the start of a fight, 2.9 ms with about 1000 stains on screen from a top-down camera. CPU: about 0.2 ms per hit. Limits for drops, splats, pools and footprints are settings, so you can trade amount for speed.Requirements and limits- Unity 2022.3 or newer with the Universal Render Pipeline (URP 14 or newer). Tested on Unity 2022.3, 6000.0, 6000.3 and 6000.6 with DirectX 11, DirectX 12, Vulkan and OpenGL Core on Windows.- High and Medium quality need Depth Texture on in your URP asset; the Setup window turns it on. Low quality needs no Depth Texture.- The Built-in Render Pipeline and HDRP are not supported.- VR single pass instanced rendering is not supported in this version.- The Low quality level and Massive mode are made for mobile and big battles. Measured numbers on mobile devices are not published yet.- No dependencies besides URP. No third-party code or assets.Features:- Drops in flight, splats on floors and walls, wall runs, merging puddles, pools under bodies, bloody footprints- Blood dries and fades over time- 7 hit presets (bullet, close bullet, shotgun, headshot, blunt, blade, explosion), all tunable in one settings asset- Stains projected on the depth buffer: no decal projectors, no textures- Two draw calls for all blood, zero GC allocations at runtime- Adjustable limits for drops, splats, pools and footprints- Setup window that checks and fixes URP settings in one click- Blood Emitter and Blood Footprints components, no code needed- Hit event for add-ons- Green censored mode and gore-off switch- Smears, liquid floor, wounds on characters, three quality levels and a Massive mode for big battles- Liquid floor grooves (Blood.Channels): pools run into drains, gutters or cut letters and fill them- Copy AI Prompt: one button copies a ready prompt with your project path and the guides, so an AI coding agent wires the blood into your game- Four demo scenes (Crime Scene, Hit Demo, Arena, Showcase) and full documentationRender pipeline: Universal Render Pipeline only (Built-in and HDRP not supported)Unity version: 2022.3 or newer, URP 14 or newer (tested on 2022.3, 6000.0, 6000.3, 6000.6)Supported OS: tested on Windows with DirectX 11, DirectX 12, Vulkan and OpenGL Core. Other URP platforms are expected to work but have not been tested yet.Documentation: included in the package, Assets/RNG/Blood/Documentation/README.md, plus AGENTS.md for AI coding agentsThis is not an AI-generated product. RNG Blood is built on the publisher's own code: the publisher designed the system and its architecture and wrote the original blood system for a game in development. An AI coding assistant (Claude by Anthropic) was used as a tool to speed up the work: writing and optimizing parts of the shaders and scripts, preparing the package for the Asset Store and drafting the documentation. All AI-assisted code was directed, reviewed and tested by the publisher in Unity 2022.3, 6000.0, 6000.3 and 6000.6. The screenshots and the trailer footage are rendered in Unity from the demo scenes in this package. The trailer sound effects come mostly from the Sonniss GDC royalty-free sound library; some sounds were generated with ElevenLabs. No AI image or video generators were used.






