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