mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-24 14:37:59 +01:00
20 lines
621 B
C#
20 lines
621 B
C#
// 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 );
|
|
}
|
|
}
|