3DSelfie
Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
Main Page
Classes
Files
File List
VertexColor.shader
Go to the documentation of this file.
1
Shader "Custom/VertexColor" {
2
SubShader {
3
Pass {
4
CGPROGRAM
5
#pragma vertex vert
6
#pragma fragment frag
7
#include "UnityCG.cginc"
8
9
struct v2f {
10
float4 pos : SV_POSITION;
11
fixed4 color : COLOR;
12
};
13
14
v2f vert (appdata_full v)
15
{
16
v2f o;
17
o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
18
o.color.xyz = v.color;
19
o.color.w = 1.0;
20
return o;
21
}
22
23
fixed4 frag (v2f i) : SV_Target { return i.color; }
24
ENDCG
25
}
26
}
27
}
Assets
Shader
VertexColor.shader
Generated on Tue Jun 9 2015 23:14:09 for 3DSelfie by
1.8.9.1