SepiaToneEffect.cs 306 B

1234567891011
  1. using UnityEngine;
  2. [ExecuteInEditMode]
  3. [AddComponentMenu("Image Effects/Sepia Tone")]
  4. public class SepiaToneEffect : ImageEffectBase {
  5. // Called by camera to apply image effect
  6. void OnRenderImage (RenderTexture source, RenderTexture destination) {
  7. Graphics.Blit (source, destination, material);
  8. }
  9. }