I'm making a new template, Within the VertexOutput I'm embedding the "worldPos" by default.
However, when I add it, other nodes using the worldPos generate errors, as it's already declared
Code: Select all
struct VertexOutput
{
float4 clipPos : SV_POSITION;
float3 worldPos : TEXCOORD0;
/*ase_interp(0,):sp=sp.xyzw;*/
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};