您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
41 行
535 B
41 行
535 B
Shader "${ShaderName}" {
|
|
Properties {
|
|
${ShaderPropertiesHeader}
|
|
}
|
|
|
|
SubShader {
|
|
Pass {
|
|
CGPROGRAM
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
#include "UnityCG.cginc"
|
|
|
|
|
|
${ShaderPropertyUsages}
|
|
|
|
struct v2f
|
|
{
|
|
float4 pos : SV_POSITION;
|
|
${ShaderInputs}
|
|
};
|
|
|
|
|
|
${ShaderFunctions}
|
|
|
|
v2f vert (appdata_full v)
|
|
{
|
|
v2f o = (v2f)0;
|
|
o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
|
|
${VertexShaderBody}
|
|
return o;
|
|
}
|
|
|
|
half4 frag (v2f IN) : COLOR
|
|
{
|
|
${PixelShaderBody}
|
|
}
|
|
ENDCG
|
|
}
|
|
}
|
|
Fallback Off
|
|
}
|