概要 画面を4色に切り落として表示するポストエフェクトを作りました。 前回の記事 [Unity]たった1個のスクリプトだけで画面解像度を下げる方法 と組み合わせることで、手軽にゲームボーイ風の画面を構築できます。 コード C#スクリプト using UnityEngine; using System.Collections; public class ColorPalette : MonoBehaviour { [SerializeField] Color[] color; Material material; Texture2D paletteTexture; void Start() { material = new Material(Shader.Find("Hidden/ColorPalette")); paletteTexture = new Texture2D(color.Le
![[Unity]4色のカラーパレットだけで画面を描画するポストエフェクトを作った | notargs.com](https://cdn-ak-scissors.b.st-hatena.com/image/square/664f144b8eacfbdc6fad34e59a13421b8e8d699d/height=288;version=1;width=512/http%3A%2F%2Fnotargs.com%2Fblog%2Fwp-content%2Fuploads%2F2016%2F10%2F2byte.png)