Details

Add 3D Distortion effect to your camera.

3D Distortion use the depth of the scene. You must set the distance to fit with your scene. Use also the _FixDistance in order to fix the scene distance if the scene is big or small.

Add it to the Camera GameObject via the Components menuCameraFilterPack > 3D > Distortion

*without and with Camera Filter Pack 3D Distortion


Property

Range

Default

_FixDistance 0f to 100f 1f
_Distance -0.99f to 0.99f 0.5f
_Size 0f to 0.5f 0.1f
DistortionLevel 0f to 10f 1.2f
DistortionSize 0.1f to 10f 1.40f
LightIntensity -2f to 4f 0.08f
AutoAnimatedNearSpeed -5f to 5f 0.5f
AutoAnimatedNear true or false false

Manipulate 3D Distortion by script

Example:

// Drag and Drop your Camera GameObject 
// with the 3D Distortion component 
// to your current script on the CamFX_3D_Distortion field 

public CameraFilterPack_3D_Distortion CamFX_3D_Distortion; 

void Update() 
{
	CamFX_3D_Distortion._FixDistance =  1f;
}