Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityStandardAssets.ImageEffects;
- [ExecuteInEditMode]
- [RequireComponent (typeof (Camera))]
- public class DownSampling : ImageEffectBase
- {
- public int Amount;
- [ImageEffectOpaque]
- public void OnRenderImage(RenderTexture source, RenderTexture destination)
- {
- material.SetInt("_DownSampling", Amount);
- Graphics.Blit(source, destination, material);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement