SepiaTone.cs 428 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. namespace UnityStandardAssets.ImageEffects
  4. {
  5. [ExecuteInEditMode]
  6. [AddComponentMenu("Image Effects/Color Adjustments/Sepia Tone")]
  7. public class SepiaTone : ImageEffectBase
  8. {
  9. // Called by camera to apply image effect
  10. void OnRenderImage (RenderTexture source, RenderTexture destination)
  11. {
  12. Graphics.Blit (source, destination, material);
  13. }
  14. }
  15. }