Lutify3D.shader 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Lutify - Unity Asset
  2. // Copyright (c) 2015 - Thomas Hourdel
  3. // http://www.thomashourdel.com
  4. Shader "Hidden/Lutify 3D"
  5. {
  6. Properties
  7. {
  8. _MainTex ("Base (RGB)", 2D) = "white" {}
  9. }
  10. CGINCLUDE
  11. #pragma vertex vert_img
  12. #pragma fragment frag
  13. #pragma fragmentoption ARB_precision_hint_fastest
  14. #pragma target 3.0
  15. ENDCG
  16. SubShader
  17. {
  18. ZTest Always Cull Off ZWrite Off
  19. Fog { Mode off }
  20. // (0) - Gamma
  21. Pass
  22. {
  23. CGPROGRAM
  24. #include "./Lutify.cginc"
  25. ENDCG
  26. }
  27. // (1) - Linear
  28. Pass
  29. {
  30. CGPROGRAM
  31. #define LUTIFY_LINEAR
  32. #include "./Lutify.cginc"
  33. ENDCG
  34. }
  35. // (2) - Gamma Split H
  36. Pass
  37. {
  38. CGPROGRAM
  39. #define LUTIFY_SPLIT_H
  40. #include "./Lutify.cginc"
  41. ENDCG
  42. }
  43. // (3) - Linear Split H
  44. Pass
  45. {
  46. CGPROGRAM
  47. #define LUTIFY_SPLIT_H
  48. #define LUTIFY_LINEAR
  49. #include "./Lutify.cginc"
  50. ENDCG
  51. }
  52. // (4) - Gamma Split V
  53. Pass
  54. {
  55. CGPROGRAM
  56. #define LUTIFY_SPLIT_V
  57. #include "./Lutify.cginc"
  58. ENDCG
  59. }
  60. // (5) - Linear Split V
  61. Pass
  62. {
  63. CGPROGRAM
  64. #define LUTIFY_SPLIT_V
  65. #define LUTIFY_LINEAR
  66. #include "./Lutify.cginc"
  67. ENDCG
  68. }
  69. }
  70. FallBack off
  71. }