Unity 표면셰이더 커스터마이징?
Unity 표면셰이더
#pragma vert:(VertexFuntion)
vertex funtion예제
void vert (inout appdata_full v, out Input o)
{
UNITY_INITIALIZE_OUTPUT(Input, o);
}
custom Input 예제
struct Input
{
float2 uv_texcoord;
float fade;
};
void vert (inout appdata_full v, out Input o)
{
UNITY_INITIALIZE_OUTPUT(Input, o);
}
struct Input
{
float2 uv_texcoord;
float fade;
};