-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
At present, the shaders do not work properly with Single Path Instanced Rendering, which is commonly used by XR headsets (HoloLens, MagicLeap One).
Please consider adding the following changes:
@MeshChain.cginc:
-
appdata_meshChain
{
UNITY_VERTEX_INPUT_INSTANCE_ID
...
}
-
struct meshChain_vertex
{
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
...
}
-
meshChain_vertex vert(appdata_meshChain v)
{
meshChain_vertex o;
UNITY_INITIALIZE_OUTPUT(meshChain_vertex, o);
UNITY_SETUP_INSTANCE_ID(v);
UNITY_TRANSFER_INSTANCE_ID(v,o);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
...
}
-
half4 frag(meshChain_vertex i) : COLOR
{
UNITY_SETUP_INSTANCE_ID(i);
...
}
tarukosu, dnnkeeper, KipJM, Glokta0, DevSelchow and 2 more
Metadata
Metadata
Assignees
Labels
No labels