See Through Dissolve

Overview

This effect is based on a script similar to the World Dissolve, called See Through Dissolve. It dynamically adjusts round cone transforms to follow the player and scale dynamically when objects are detected between the camera and the player.

How To Use It

Add See Through Dissolve to any game object in your scene.

It works similarly to the World Dissolve script. The main difference is that it always uses the auto detection feature, so you cannot disable it, and masks are always sphere masks.

Assign all properties.

Materials use See Through Dissolve Burn/Smooth shader.

You can modify your own shader graphs, to support World Dissolve. See Shader Graph.

Add collider to the masks used with see through dissolve.

Make sure that the object's layer you want to see through is in the detection layer mask.

Now everything should work fine. You are able to change the position and scale of the sphere mask.

You can attach the mask to your player, for example.

If you want more control over the mask, you can use the see through helper.

Add SeeThroughHelper.cs to any game object in your scene.

Assign and adjust all properties.

Each property has a tooltip with a default value.

How To Fix Camera Lag

If you are experiencing lags, check this section.

See Through Helper

For each mask you are using, you need to add a new Mask Object to the mask objects list.

Mask Object

Check the properties here.

Other Settings

Force Update Mask Parameters: Enable if you are experiencing any lags due to the updating of the mask transform's position.

Last updated