您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
49 行
689 B
49 行
689 B
Shader "Graph/${ShaderName}"
|
|
{
|
|
Properties
|
|
{
|
|
${ShaderPropertiesHeader}
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
${Tags}
|
|
${Blending}
|
|
${Culling}
|
|
${ZTest}
|
|
${ZWrite}
|
|
|
|
LOD 200
|
|
|
|
CGPROGRAM
|
|
#pragma exclude_renderers ps3 flash xbox360 gles d3d11 d3d11_9x
|
|
#pragma target 3.0
|
|
#pragma surface surf ${LightingFunctionName} ${VertexShaderDecl}
|
|
#pragma glsl
|
|
#pragma debug
|
|
|
|
${LightingFunction}
|
|
|
|
${ShaderFunctions}
|
|
|
|
${ShaderPropertyUsages}
|
|
|
|
struct Input
|
|
{
|
|
${ShaderInputs}
|
|
};
|
|
|
|
void vert (inout appdata_full v, out Input o)
|
|
{
|
|
UNITY_INITIALIZE_OUTPUT(Input,o);
|
|
${VertexShaderBody}
|
|
}
|
|
|
|
void surf (Input IN, inout SurfaceOutput o)
|
|
{
|
|
${PixelShaderBody}
|
|
}
|
|
ENDCG
|
|
}
|
|
FallBack "Diffuse"
|
|
}
|