Last active
December 7, 2016 03:50
-
-
Save kodai100/c2f222c8d5105d377c2c462239c92c81 to your computer and use it in GitHub Desktop.
Simple Color Shader.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Custom/SimpleColor" { | |
| Properties{ | |
| _Color("Color", Color) = (1,1,1,1) | |
| } | |
| SubShader{ | |
| Pass{ | |
| CGPROGRAM | |
| #pragma vertex vert | |
| #pragma fragment frag | |
| float4 vert(float4 v:POSITION) : SV_POSITION{ | |
| return mul(UNITY_MATRIX_MVP, v); | |
| } | |
| fixed4 _Color; | |
| fixed4 frag() : COLOR{ | |
| return _Color; | |
| } | |
| ENDCG | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment