1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- // Lutify - Unity Asset
- // Copyright (c) 2015 - Thomas Hourdel
- // http://www.thomashourdel.com
- Shader "Hidden/Lutify 3D"
- {
- Properties
- {
- _MainTex ("Base (RGB)", 2D) = "white" {}
- }
- CGINCLUDE
- #pragma vertex vert_img
- #pragma fragment frag
- #pragma fragmentoption ARB_precision_hint_fastest
- #pragma target 3.0
- ENDCG
- SubShader
- {
- ZTest Always Cull Off ZWrite Off
- Fog { Mode off }
- // (0) - Gamma
- Pass
- {
- CGPROGRAM
- #include "./Lutify.cginc"
- ENDCG
- }
- // (1) - Linear
- Pass
- {
- CGPROGRAM
- #define LUTIFY_LINEAR
- #include "./Lutify.cginc"
- ENDCG
- }
- // (2) - Gamma Split H
- Pass
- {
- CGPROGRAM
- #define LUTIFY_SPLIT_H
- #include "./Lutify.cginc"
- ENDCG
- }
- // (3) - Linear Split H
- Pass
- {
- CGPROGRAM
- #define LUTIFY_SPLIT_H
- #define LUTIFY_LINEAR
- #include "./Lutify.cginc"
- ENDCG
- }
- // (4) - Gamma Split V
- Pass
- {
- CGPROGRAM
- #define LUTIFY_SPLIT_V
- #include "./Lutify.cginc"
- ENDCG
- }
- // (5) - Linear Split V
- Pass
- {
- CGPROGRAM
- #define LUTIFY_SPLIT_V
- #define LUTIFY_LINEAR
- #include "./Lutify.cginc"
- ENDCG
- }
- }
- FallBack off
- }
|