summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/3ner.cginc b/3ner.cginc
index 4df5366..c104c68 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -164,6 +164,7 @@ v2f domain(
OutputPatch<v2f, 3> patch,
float3 baryc : SV_DomainLocation)
{
+ UNITY_SETUP_INSTANCE_ID(patch[0]);
v2f o = (v2f) 0;
#define DOMAIN_INTERP(fieldName) \
patch[0].fieldName * baryc.x + \
@@ -207,6 +208,7 @@ void geom(triangle v2f tri_in[3],
uint pid: SV_PrimitiveID,
inout TriangleStream<v2f> tri_out)
{
+ UNITY_SETUP_INSTANCE_ID(tri_in[0]);
v2f v0 = tri_in[0];
v2f v1 = tri_in[1];
v2f v2 = tri_in[2];
@@ -244,6 +246,7 @@ void geom(triangle v2f tri_in[3],
//endex
float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target {
+ UNITY_SETUP_INSTANCE_ID(i);
#if defined(SHADOW_CASTER_PASS)
return 0;
#endif