ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Override Shader Doesn't Work for OpenXR #221

Open unoctium1 opened 3 years ago

unoctium1 commented 3 years ago

Similar issue to #193 , except I'm having this issue with the OpenXR package instead of with Oculus, and I'm using HDRP instead of URP

Render Model Hook is set up as follows: image

However, the model appears pink in the scene, and inspecting the controllers at runtime shows they are using the standard shader instead of HDRP/Lit

I'm using Unity 2020.3.12, VIU 13.1.0, and OpenXR 1.2.2, and currently testing with Valve Index controllers

unoctium1 commented 3 years ago

Just tested in Unity 2019.4.28 with the legacy OpenVR package, VIU 13.1.0, and it seems like shader overriding doesn't work there either, but it does seem to work with the Oculus package

Edit: After looking into it a bit more, looks like the shader overriding got taken out in 567fbb245904f8bbee724189391e28d9ca2f7dfe