pastasfuture / com.hauntedpsx.render-pipelines.psx

A scriptable render pipeline for emulating Playstation-1-style graphics on contemporary hardware.
https://twitter.com/HauntedPs1/
MIT License
383 stars 26 forks source link

Single-pass instancing and XR Plug-in #43

Closed SyrDim closed 4 months ago

SyrDim commented 4 months ago

Is it possible to add single-pass instancing support that is used by the XR Plug-in?

I've been trying to make a VRChat map with this shader but I get the following error when I compile the PSXLit shader: undeclared identifier 'unity_StereoEyeIndex' at MYPROJECT/Library/PackageCache/com.unity.render-pipelines.core@14.0.8/ShaderLibrary/UnityInstancing.hlsl(205) (on d3d11)

This only happens when the XR Plug-in is present.

Unity version: 2022.3.6f1 Package version: 2022-lts-support #42

SyrDim commented 4 months ago

After consulting the discord, I was told that what I'm trying to do is basically use two pipelines at the same time, since VRChat uses Unity's Built-in Renderer Pipeline, which is not possible.

So I'll be closing this issue.