Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Custom/MostBasic" {
- Properties {
- _Color ("Main Color", COLOR) = (1, 1, 1, 1)
- }
- SubShader {
- Tags { "RenderType"="Opaque" }
- LOD 200
- Pass{
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
- uniform fixed4 _Color;
- struct vertexInput {
- float4 vertex : POSITION;
- float4 tex : TEXCOORD0;
- float4 color : color;
- };
- struct vertexOutput {
- float4 pos : SV_POSITION;
- };
- vertexOutput vert(vertexInput v)
- {
- vertexOutput o;
- o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
- return o;
- }
- float4 frag(vertexOutput IN) : COLOR
- {
- return _Color;
- }
- ENDCG
- }
- }
- FallBack "Diffuse"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement