I am trying to access to the svPosition in my fragment program in Unity but I keep having this error.
invalid input semantic 'POSITION': Legal indices are in [1,15] invalid ps_3_0 input semantic 'POSITION'
Here are some information about my whole shader.
struct : float4 pos : SV_POSITION;
vertex : o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
fragment : col.rgb = i.pos.xyz;
Any idea how to access this value ?
↧