FiE-Game/Assets/Cinematic Effects/MotionBlur/Plugins/AmplifyMotionPostProcess.cs

21 lines
621 B
C#
Raw Normal View History

// Amplify Motion - Full-scene Motion Blur for Unity Pro
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
using System;
using System.Collections.Generic;
using UnityEngine;
[AddComponentMenu( "" )]
[RequireComponent( typeof( Camera ) )]
sealed public class AmplifyMotionPostProcess : MonoBehaviour
{
private AmplifyMotionEffectBase m_instance = null;
public AmplifyMotionEffectBase Instance { get { return m_instance; } set { m_instance = value; } }
void OnRenderImage( RenderTexture source, RenderTexture destination )
{
if ( m_instance != null )
m_instance.PostProcess( source, destination );
}
}