Hello
I am having a little problem with vertex displace and Depth of Field image effect.
Displacement is not recognized by the image effect (not only Depth of Field)
Here is very simple displacement shader
Shader "Custom/Displace"
{
Properties
{
_Amount ("Extrusion Amount", float) = 0
}
SubShader
{
ZWrite On
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct v2f
{
float4 pos : SV_POSITION;
};
half _Amount;
v2f vert (appdata_base v)
{
v2f o;
v.vertex.xyz += v.normal * _Amount;
o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
return o;
}
fixed4 frag (v2f i) : COLOR0 { return fixed4(0, 0.63, 0.9, 1); }
ENDCG
}
}
}
With subshader tag, even more strange
Tags { "RenderType"="Opaque" "Queue" = "Geometry" }
Can someone tell, what I am missing.