Pass ForgeDocs Product page

Manual

Dissolve, Occluder Fade and Cross Section

These three components change how an object's own surface draws. While one works, the object's Mesh Renderers (and, for Dissolve and Cross Section, its Skinned Mesh Renderers) show copies of their materials on the Pass Forge/Lit Effects shader, which is URP Lit with the effect on top. Dissolve and Occluder Fade work on sprites too, as described below; Cross Section is for 3D meshes, since a sprite is flat and has no inside to show. A URP Lit material keeps every texture and setting. A material on another shader (Shader Graph, toon, Unlit or a custom shader) is drawn as URP Lit while the effect runs. It keeps only its base texture and color, and only when they are named _BaseMap and _BaseColor, or _MainTex and _Color. When the effect is done, the original materials come back, so the object batches and looks exactly as before. They work in play mode, on either renderer. On the 2D Renderer a mesh shows them unlit, as the 2D Renderer draws URP Lit, and a Cross Section's inside is plain rather than hatched. Sprites keep their own material while they dissolve when the 2D Renderer's Depth/Stencil Buffer is on; with it off they dissolve with Pass Forge's sprite shader, and the Dissolve inspector offers to turn it on.

Pass Forge Dissolve removes the object or builds it up.

SettingWhat it does
StyleDissolve burns away in noisy patches, Scan removes the object from the top under a glowing line and, played backwards, builds it up from the bottom, Disintegrate crumbles it from the top in grains that blow away.
AmountHow much of the object is gone, from 0 to 1.
Edge Color, Edge WidthThe glowing edge. HDR values feed bloom.
Noise Scale, DriftSize of the patches, and how far disintegrating parts blow away.
Deactivate When GoneDeactivate the object once it has fully dissolved.
On FinishedUnityEvent called when Dissolve or Materialize finishes.

Dissolve(seconds) and Materialize(seconds) animate it; both are also in the component's context menu.

On a Sprite Renderer, Dissolve works the same way with the same settings and timing, and Deactivate When Gone switches the object off at the end as for a mesh. Sprites keep their own material and look while they dissolve, a Shader Graph sprite with its tint or fog color included, on the 2D Renderer and the Universal Renderer alike: while it runs, the sprite is shown through a hidden Sprite Mask that covers it, in the same patterns as a mesh, and a hidden copy of the Sprite Renderer just above it draws the glowing edge. The mask reaches only the sprite's own sorting layer and order, so other sprites are left alone. Nothing needs setting up and nothing is saved: the sprite's Mask Interaction and the hidden objects are put back when it is whole again, before Deactivate When Gone switches it off, and when the component is switched off or removed. A sprite that uses sprite masks of its own (its Mask Interaction is set), or is bent by bones with a Sprite Skin, is drawn instead with a copy of its material on the Pass Forge/Sprite Effects shader, which draws as URP's sprite shaders do, with the sprite's color, flip, atlas, sorting and normal map, but not a custom shader's look; the Dissolve Inspector names such a sprite. Drift moves only meshes; sprites crumble in place. Sprite Shapes and Tilemaps are left as they are.

Pass Forge Occluder Fade goes on the player. Walls, roofs and trees between the camera and the player get a soft dithered hole around the player, so the player never disappears behind scenery. It cuts objects drawn with a Mesh Renderer; Skinned Mesh Renderers, Terrain and trees painted on a Terrain stay whole. Only what is nearer the camera than the player is cut: a wall the player stands in front of stays whole, and so does the far part of a building the camera looks through. It needs no colliders. Set Layers to leave the ground out, Radius and Softness for the hole, and Target Offset for the point to keep in view.

Sprites in the way fade instead of getting a hole. When the player has a Sprite Renderer, a sprite counts as in the way when it is drawn after the player in the 2D sort (Sorting Group, sorting layer, order in layer, then the camera's transparency sort, as the 2D Renderer draws them) and reaches into the circle of Radius around the point kept in view; one drawn before the player, behind it, stays as it is. Without a sprite of its own, the player is covered by the sprites on its line of sight, as by 3D walls. A sprite in the way fades to Sprite Opacity over Sprite Fade Time by its color's alpha, so it keeps its material, and comes back once it no longer covers the player. Layers and the check interval apply as for walls.

Pass Forge Cross Section cuts its Targets with its own plane and shows the inside in the Section Color, for architecture, product and teaching views. It cuts 3D meshes; sprites in Targets are left as they are, and its inspector says so. Move and rotate the component's object to move the cut; its up direction points at the part cut away, and Flip cuts the other side.

A player build keeps the Lit Effects shader, and the variants the copies need for normal maps, emission, alpha clipping and transparency, whenever one of these components is in a scene of the build, and the Sprite Effects shader whenever a Dissolve is. When a script adds them while the game runs, tick Dissolve, Occluder Fade And Cross Section Added From Scripts under Project Settings > Pass Forge; without it the console says the shader is missing instead of the effect silently not showing.