Skip to content

Instantly share code, notes, and snippets.

@TheStoneBook
Created October 21, 2018 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheStoneBook/23fc8ac4a77e498119cf93665f183809 to your computer and use it in GitHub Desktop.
Save TheStoneBook/23fc8ac4a77e498119cf93665f183809 to your computer and use it in GitHub Desktop.
【Unity】ポストエフェクトの適用
using UnityEngine;
//[ExecuteInEditMode]
public class PostEffect : MonoBehaviour {
[SerializeField]
private Material _material;
private void OnRenderImage(RenderTexture source, RenderTexture destination)
{
Graphics.Blit(source, destination, _material);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment