浏览代码

Fix alpha blending in shader template

/main
Peter Bay Bastian 7 年前
当前提交
c178455f
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 13
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/subshader.template

13
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/subshader.template


SubShader
SubShader
{
${Tags}
${Blending}

LOD ${LOD}
#pragma surface surf ${LightingFunctionName} ${VertexShaderDecl}
#pragma surface surf ${LightingFunctionName} ${VertexShaderDecl} keepalpha
#pragma glsl
#pragma debug

struct Input
struct Input
{
${ShaderInputs}
};

UNITY_INITIALIZE_OUTPUT(Input,o);
${VertexShaderBody}
}
void surf (Input IN, inout ${SurfaceOutputStructureName} o)
void surf (Input IN, inout ${SurfaceOutputStructureName} o)
o.Alpha = 1;
${PixelShaderBody}
}
ENDCG
正在加载...
取消
保存