koochyrat / SteamVRFrustumAdjust

For canted headsets like Pimax, calculate proper culling matrix to avoid objects being culled too early at far edges in Unity. Prevents objects popping in and out of view
Creative Commons Zero v1.0 Universal
19 stars 4 forks source link

Any chance for some shader references? #7

Open Smash-ter opened 3 weeks ago

Smash-ter commented 3 weeks ago

As much as it is nice to have .cs references any chance to also have .shader/.cginc/.hlsl references for those of us who want to make some of our billboarding shaders look correct?

koochyrat commented 3 weeks ago

There are no shader stuff for this because all the rendering is internal to Unity. If you're doing your own shader then probably you need to modify the view matrices. I'm not very good with hlsl, but if you have a link to the shader code then maybe I can take a look.