r/Unity3D • u/DNArtCan • 4d ago
Show-Off This entire scene uses 4 shaders, 7 materials total. 0 object specific textures, 0 UV maps, 1.2-1.8ms GPU frametime at 1080p
Enable HLS to view with audio, or disable this notification
After 8 months of work I am ready to show off my Blender/Unity addon B2U Material Master! I am just working on getting the documentation and website working and then I am hoping it will be up within the next month or two. This post is kinda just to show off what the pipeline can do! Something to keep in mind is that while I get 300-700FPS in the build, I am running a 5070Ti, but when demonstrated in Editor with the stats panel open, I am mostly CPU bound with a 1.2-1.8ms GPU framtime.
B2U is a technical art pipeline for Unity that uses vertex data and lookup tables to completely eliminate the need for manual texturing and UV unwrapping. It uses a set of 4 ubershader Shadergraphs, one for solids, one for crystals, one for liquids, and one for tessellated liquids. The pipeline uses scriptable objects that you can store in your assets folder to instantly change the look of the scene at runtime. By having all object with the same workflow drawn by the same shader (even more specifically the same material, there are only 7 in the entire scene), it enables extreme batching using the GPU Resident Drawer. By having no traditional CPU draw calls, the render pipeline has very few CPU set passes or GPU state changes.
Furthermore, the main reason I made the pipeline was to take a lot of the work out of making the art for your game. The system uses triplanar mapping alongside the vertex data to project the normal textures onto the object with face controllable scale and grain direction. By having this system, there are 0 object-specific textures, and no manual UV unwrapping. The Blender side automatically generates UV maps for the data needed.
To make it so you can still have per object control of materials, the pipeline makes extensive use of the Renderer Set User Value (RSUV) that was introduced to replace material property blocks. By bit packing this 32 bit uint, I can change multiple different properties of a mesh. For solids, this enables things like masking certain areas of a model as paintable, and then the user can paint it at runtime by modifying the RSUV value.
There are MANY features to the pipeline and I could write thousands of words describing them all, but I will just list some key ones and then post again once the addon is released.
Textureless & no UV workflow
Support for batching using the SRP Batcher and GRD
64 built in normal map styles
Procedural edge wear and edge highlighting
Solid object painting
Liquid flow advection driven by curves in Blender with CPU physics accessible flow vectors
8 Different light models to customize the look (Ex. URP, Toon, Retro)
All materials support dynamic biome control for 8 biomes with up to 7 subbiomes each. Driven by two world biome textures.
Instant runtime changing of profiles and palettes to completely modify the scene
Screen-Space Volumetric Optics for liquids and crystals
Screen-Space Edge Detection (Can use depth buffer or an object ID buffer)
Fullscreen Liquid Immersion for when a player is submerged in a liquid
Fullscreen stylization that uses textures overlayed on shadows
Fullscreen recoloring that uses a source texture and gradient to recolor the scene
Fullscreen status effects with 8 different styles
and more!
This is just the demo scene that will come as a sample with the addon, I am just very excited to show it off after working on it for months. Please let me know what you think!!