您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
38 行
519 B
38 行
519 B
SubShader
|
|
{
|
|
${Tags}
|
|
${Blending}
|
|
${Culling}
|
|
${ZTest}
|
|
${ZWrite}
|
|
|
|
LOD ${LOD}
|
|
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma surface surf ${LightingFunctionName} ${VertexShaderDecl} keepalpha
|
|
#pragma glsl
|
|
#pragma debug
|
|
|
|
${ShaderPropertyUsages}
|
|
${ShaderFunctions}
|
|
|
|
|
|
struct Input
|
|
{
|
|
${ShaderInputs}
|
|
};
|
|
|
|
void vert (inout appdata_full v, out Input o)
|
|
{
|
|
UNITY_INITIALIZE_OUTPUT(Input,o);
|
|
${VertexShaderBody}
|
|
}
|
|
|
|
void surf (Input IN, inout ${SurfaceOutputStructureName} o)
|
|
{
|
|
o.Alpha = 1;
|
|
${PixelShaderBody}
|
|
}
|
|
ENDCG
|
|
}
|